| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| 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" <vince AT molot DOT ru> |
| To: | <cygwin AT sourceware DOT cygnus DOT com> |
| 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 |
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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |