[LC++][Fwd: Re: [Foxgui-users]Anybody using the Unicode already ?]

J.A.H. heblack at ispmonsters.com
Fri Nov 25 12:57:02 UTC 2005


-------- Original Message --------
Subject: 	Re: [Foxgui-users]Anybody using the Unicode already ?
Date: 	Thu, 24 Nov 2005 21:27:15 -0800
From: 	J.A.H. <heblack at ispmonsters.com>
To: 	Lothar Scholz <llothar at web.de>
References: 	<524905130.20051024180107 at web.de>

Lothar Scholz wrote:

>Hello FOX Users,
>Is anybody using it in a text intensive applications ?
>How does it work ?
>>From the postings it looks that almost everybody is still on the 1.4.X
This little C program works as expected:

    #include <locale.h>
    #include <stdio.h>

    int main(int argc, char *argv[])

      if (!setlocale(LC_CTYPE, ""))
	fprintf(stderr, "Can't set the specified locale! "
		"Check LANG, LC_CTYPE, LC_ALL.\n");
	return 1;
      printf("%ls\n", L"Schöne Grüße");
      return 0;

Actually, on further thought it works, because the compiler was using 

the C library it knew about and both would have agreed on the wide character 

codeset used - the wide character codeset would be implementation defined, 

but correct.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20051125/b2a3ad45/attachment.htm 

More information about the tuxCPProgramming mailing list