Paul Eggert <[email protected]> writes:

> +  static char const quote[][4] = { "\xe2\x80\x98", "\xe2\x80\x99" };
> +  char32_t w;
> +  mbstate_t mbstate = {0,};
> +  if (mbrtoc32 (&w, quote[0], 3, &mbstate) == 3 && w == 0x2018)
> +    return quote[msgid[0] == '\''];

Any issue with using the following here:

   mbstate_t mbstate; mbszero (&mbstate);

Mostly because I find it less ugly, which I recognize is not a valid
justification. But I guess it also saves a few write instructions, which
probably matters more for functions that are repeated more frequently
than quote.

Collin

Reply via email to