delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/01/16/04:29:21

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Sun, 16 Jan 2005 02:29:12 -0700
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: setlocal...
In-reply-to: <200501152000.j0FK0oDv015350@speedy.ludd.ltu.se>
To: djgpp-workers AT delorie DOT com
Message-id: <4rcku09t3nlh3d9trsjgk4dolotei29eq9@4ax.com>
Organization: Systematic Software
MIME-version: 1.0
X-Mailer: Forte Agent 1.93/32.576 English (American)
References: <gm6ut0tr5s9aku5c7ape176ru2j9pctfop AT 4ax DOT com>
<200501152000 DOT j0FK0oDv015350 AT speedy DOT ludd DOT ltu DOT se>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j0G9TEba001107
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

On Sat, 15 Jan 2005 21:00:50 +0100 (CET), ams AT ludd DOT ltu DOT se wrote:

>Thanks! But I was expecting a more complete explanation of what the
>change from a 10-line function into hundreds of lines meant.

contrib/liblocal.02/doc/readme.1st (appended) may be what you need.

Thanks. Take care, Brian Inglis


                    ***************************************
                    * liblocal : Locale support for DJGPP *
                    *             Version: 0.2            *
                    ***************************************

----------------------------------- Abstract ----------------------------------

This library fixes NLS problems in the DJGPP libc library and implements
almost complete ANSI C locale support using the data provided by country.sys
driver. The following features are provided:

1) setlocale(): The following categories are implementad: LC_COLLATE, LC_CTYPE,
   LC_MONETARY, LC_NUMERIC, LC_TIME. POSIX LC_MESSAGES is not supported. Due to
   limitations of country.sys driver only current user locale and "C" (aka
   "POSIX") locales supported.

   Call to setlocale modifies internal structures for ctype.h and localeconv()
   functions with appropriate values, thus providing complete locale support
   there.

2) strcoll(): modified to use data from setlocale().

3) strftime(): Fixed "x" and "X" to display date and time in NLS format.

4) regex library: Fixed char signedness problems, changed to use results
   returned by ctype.h functions in alnum, alpha, blank, cntrl, digit, graph,
   lower, print, punct, space, upper, xdigit classes, eliminated warnings,
   fixed few memory leaks.

5) strtod(), _strtold(), doscan(): added support for decimal point.

6) doprnt(): fixed support for decimal point.

Problems:

This library not supports grouping in LC_NUMERIC and LC_MONETARY and not
changes negative and positive signs in LC_MONETARY. It is also known that
at least Russian locale improperly implemented in WindowsXP and decimal
point is not comma but a dot, though this is known to work properly in
PC DOS 2000 from IBM.

This library is also missed multibyte characters support.

------------------------------------ Usage ------------------------------------

Place the library in your %DJGPP%/lib directory and add -llocal parameter to
the end of commandline of your linker but before the -lc (if you use gcc for
linking as most of us - just add to the end).

NOTE: It may not work if you add the library at the beggining of commandline!

If you expirienced user you may think of modifying compiler specs file, but it
up to you, I have no any responsibility for that in neither way :-)

----------------------------------- License -----------------------------------

Files derived from DJGPP C library are distributed under the terms of
copying.dj.

setlocal.c may be used freely so long as copyright notice is left intact.

Anyway, the liblocal is being delivered to you AS IS and authors make no
warranty as to its use or performance. AUTHORS DO NOT AND CANNOT WARRANT THE
RESULTS YOU MAY OBTAIN BY USING (OR MISUSING) THE SOFTWARE OR DOCUMENTATION.
AUTHORS MAKE NO WARRANTIES, EXPRESS OR IMPLIED, AS TO NONINFRINGEMENT OF THIRD
PARTY RIGHTS, MERCHANTABILITY, OR FITNESS FOR ANY PARTICULAR PURPOSE. IN NO
EVENT WILL AUTHORS BE LIABLE TO YOU FOR ANY CONSEQUENTIAL, INCIDENTAL OR
SPECIAL DAMAGES, INCLUDING ANY LOST PROFITS OR LOST SAVINGS, EVEN IF THE
AUTHORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM
BY ANY THIRD PARTY.

---------------------------------- ChangeLog ----------------------------------

2002/06/08 - Initial revision.

2002/07/17 - Removed small portion of code which broke 0xc1 in CP437.

------------------------------------ Author -----------------------------------

If you have any questions, complaints, etc. you can direct them to:
Alexander S. Aganichev <asa AT users DOT sf DOT net>

-------------------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019