Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199911181107.OAA04365@cnt.ru> From: "Max A. Fomitchev" To: Subject: LANG, LC_ALL etc under Win98 Date: Thu, 18 Nov 1999 14:05:30 +0300 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit 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 #include #include 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() = 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 AT sourceware DOT cygnus DOT com