Use LC_CTYPE instead of LC_ALL in the FString() example
This commit is contained in:
parent
e9a04bcf29
commit
36d1163343
|
@ -14,7 +14,7 @@ int main (int, char**)
|
|||
printf ("----------------[ terminal ]-------------------\n");
|
||||
|
||||
// init current locale
|
||||
printf (" Locale: %s\n", setlocale(LC_ALL, "") );
|
||||
printf (" Locale: %s\n", setlocale(LC_CTYPE, "") );
|
||||
if ( isatty(1) && ! strcmp(nl_langinfo(CODESET), "ANSI_X3.4-1968") )
|
||||
{
|
||||
// locale C -> switch from 7bit ascii -> latin1
|
||||
|
|
Loading…
Reference in New Issue