Robert Brady writes:

> How does it implement the following :
> 
>   wchar_t *foo = "\u00A0";
> 
>   int main() {
>     setlocale(LC_ALL, "");
>     wprintf(foo);
>   }

As equivalent of

  int main() {
    setlocale(LC_ALL, "");
    printf("\xA0");
  }

Both of these programs will only work in particular locales
(ISO-8859-1 or so).

To print messages that are correct in all languages, one needs
gettext().

To print particular Unicode-characters (like no-break space) correctly
in all locales, one needs either __STDC_ISO_10646__ or an iconv()
based conversion.

Bruno
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/

Reply via email to