delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
From: | <ams AT ludd DOT ltu DOT se> |
Message-Id: | <200503171858.j2HIwQrY027334@speedy.ludd.ltu.se> |
Subject: | Re: setlocal.c |
In-Reply-To: | <42020C71.000017.28573@tide.yandex.ru> "from Alexander Aganichev |
at Feb 3, 2005 02:35:13 pm" | |
To: | djgpp-workers AT delorie DOT com |
Date: | Thu, 17 Mar 2005 19:58:26 +0100 (CET) |
X-Mailer: | ELM [version 2.4ME+ PL78 (25)] |
MIME-Version: | 1.0 |
X-ltu-MailScanner-Information: | Please contact the ISP for more information |
X-ltu-MailScanner: | Found to be clean |
X-MailScanner-From: | ams AT ludd DOT ltu DOT se |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
According to Alexander Aganichev: > I have integrated Brian's patches in my code. Also, I found a bug with > setting separate parts of locale in single scope (f.e. > setlocal(LC_ALL, "C,ru_RU.866,C")), made it possible to set locale without > codepage (i.e. "ru_RU" instead of "ru_RU.866") and a bit improve speed > by using memcpy instead of strcpy where possible. Thanks! I've commited it with a small change (you mixed signed and unsigned while comparing), see below. > The what I want to put into libc more is regex patch, but I'm not sure > about the steps to submit changes. May be we can start from the warning > elimination and procede with locale support... Sounds ok. > static const struct _loc2id > { > int id; > const char *loc; > int len; > } "int len" -> "size_t len". Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |