Use LC_CTYPE instead of LC_ALL in the FString() example

This commit is contained in:
Markus Gans 2015-06-28 20:39:21 +02:00
parent e9a04bcf29
commit 36d1163343
1 changed files with 1 additions and 1 deletions

View File

@ -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