* LANG, LC_ALL etc under Win98
@ 1999-11-18 3:08 Max A. Fomitchev
1999-11-30 23:39 ` Max A. Fomitchev
0 siblings, 1 reply; 2+ messages in thread
From: Max A. Fomitchev @ 1999-11-18 3:08 UTC (permalink / raw)
To: cygwin
How I can set the value of the following variables: LANG, LC_ALL etc?
It's quite easy in any UNIX environment, but I can't do it under Win98.
For example, I wrote the following trivial program:
//file1.c
#include <stdio.h>
#include <locale.h>
#include <ctype.h>
main()
{
unsigned char c=0x0f9;
setlocale(LC_ALL, "");
printf("LC_CTYPE\t= %s\n", setlocale(LC_CTYPE, NULL));
printf("isalpha(%c)\t= %s\n", c, isalpha(c) ? "yes" : "no" );
return 0;
}
//end
LANG="ru_SU.X-CP-866" (or any other - WIN1251, KOI8-r, ISO8859-5)
LC_ALL=ru
Result of the execution was:
BASH.EXE-2.02$ ./file1
LC_CTYPE = C
isalpha(<Russian 'e'>) = no
I've tried to set LANG and other environment variables in AUTOEXEC.BAT,
but it doesn't take effect.
Max Fomitchev
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* LANG, LC_ALL etc under Win98
1999-11-18 3:08 LANG, LC_ALL etc under Win98 Max A. Fomitchev
@ 1999-11-30 23:39 ` Max A. Fomitchev
0 siblings, 0 replies; 2+ messages in thread
From: Max A. Fomitchev @ 1999-11-30 23:39 UTC (permalink / raw)
To: cygwin
How I can set the value of the following variables: LANG, LC_ALL etc?
It's quite easy in any UNIX environment, but I can't do it under Win98.
For example, I wrote the following trivial program:
//file1.c
#include <stdio.h>
#include <locale.h>
#include <ctype.h>
main()
{
unsigned char c=0x0f9;
setlocale(LC_ALL, "");
printf("LC_CTYPE\t= %s\n", setlocale(LC_CTYPE, NULL));
printf("isalpha(%c)\t= %s\n", c, isalpha(c) ? "yes" : "no" );
return 0;
}
//end
LANG="ru_SU.X-CP-866" (or any other - WIN1251, KOI8-r, ISO8859-5)
LC_ALL=ru
Result of the execution was:
BASH.EXE-2.02$ ./file1
LC_CTYPE = C
isalpha(<Russian 'e'>) = no
I've tried to set LANG and other environment variables in AUTOEXEC.BAT,
but it doesn't take effect.
Max Fomitchev
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-30 23:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-18 3:08 LANG, LC_ALL etc under Win98 Max A. Fomitchev
1999-11-30 23:39 ` Max A. Fomitchev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).