Commit Graph

272 Commits

Author SHA1 Message Date
wiz 3225ede1d3 New sentence, new line. From Robert Elz. 2002-10-01 17:02:56 +00:00
junyoung c9d0f1b653 towlower appeared twice in synopsis. 2002-10-01 17:00:22 +00:00
enami 8be6c4876d Rearrange code to avoid core dump and just return an error instead
when parsing a locale string previously returned by setlocale.
2002-08-07 04:42:42 +00:00
yamt e499009646 remove _StreamStateTable. 2002-08-03 11:10:51 +00:00
yamt 88a7c37398 remove a global variable "saved_categories" as it isn't necessary anymore. 2002-08-03 06:12:30 +00:00
tshiozak 0b03f5f98b remove an obstructive ?: operator of the check added in the last commit by
itojun-san.
2002-08-02 12:27:32 +00:00
itojun 73811081f9 correct use of strlcpy (really need to enforce length, so use memcpy) 2002-08-02 08:02:36 +00:00
tshiozak 19debadf5c fix a bug of setlocale when changing locales with LC_ALL for the first
argunemt and with a string containing many slashes for the second argument.
This bug may cause setlocale() to destroy static datas.

If a setuid program calls this function as 'setlocale(LC_ALL, "");',
this might be vulnerable, although there are few programs having such
vulnerability.  This bug probably affects every versions of NetBSD,
including 1.4, 1.5 and 1.6.

XXX: This part of setlocale is unseemly, thus we had better rewrite it in
the future.
2002-08-02 07:12:51 +00:00
yamt 38b935dc19 add CAVEATS. 2002-07-10 14:46:10 +00:00
yamt 67eaaa4e49 BUGS:
Multibyte locales aren't supported for static binaries.
2002-05-19 13:44:31 +00:00
kleink 3e9bbb1219 Need namespace.h for snprintf. 2002-04-17 13:40:35 +00:00
wiz 29a3d37fd5 Add HISTORY. 2002-04-09 20:00:05 +00:00
yamt 764625531c remove a redundant space. 2002-03-27 18:17:34 +00:00
yamt 8468b78b76 move mbrtowc to _amd1 from _c90. 2002-03-26 06:10:27 +00:00
yamt bf790e3b07 return value 0 doesn't have special meanings. 2002-03-25 20:01:22 +00:00
yamt 88fef345a8 return value 0 doesn't have any special meanings. 2002-03-25 19:22:13 +00:00
yamt de5444e862 - return value 0 doesn't have special meanings for wcsrtombs.
- add a note about terminating null byte for s == NULL case.
- s/null byte/null wide character/ in some place.
2002-03-25 19:17:02 +00:00
tshiozak f4b38752de Move mbstate_t materials from locale/runetype.h to locale/multibyte.h.
Before this fix, building nbmklocale was failed on non-NetBSD-current platforms.
multibyte.h seems more appropriate one to contain them.
2002-03-18 22:58:44 +00:00
yamt 69fa98c2af explicitly align _RuneStatePriv::__private
and remove XXX comment.
2002-03-18 22:25:43 +00:00
yamt 597ba8fdc1 - check malloc failure.
- only 'next' member of global variable localetable is used.
  so remove it and define a pointer instead.
2002-03-18 11:49:19 +00:00
yamt 6c2e3b3d83 fix how to check a return value of readentry. 2002-03-18 11:34:40 +00:00
yamt 4112ebb394 set errno only when error occured. 2002-03-18 09:56:49 +00:00
wiz 8d3b0e0097 Use .St -isoC99 to refer to ISO C99. 2002-03-18 08:03:39 +00:00
wiz 68dbdc566f HTML-quote another <> pair. 2002-03-18 08:02:19 +00:00
wiz 9f64fab4a1 Fix .Dd argument, sort SEE ALSO, remove trailing dot in SEE ALSO,
HTML-quote <>, and fix some typos.
2002-03-18 07:56:28 +00:00
tshiozak 8625ada82c add manpages for mb*/wc* functions. 2002-03-18 06:00:26 +00:00
tshiozak dc7d18ff88 refine i18n stuffs.
- add libc/citrus directory.
    this directory contains the common stuffs not only for locale
    but also other facilities relating to i18n (e.g. iconv).
  - To keep the binary compatibility for the ctype modules easily,
    the interface between libc and the modules is simplified.
  - For the future integrated extension, module pool is renamed
    from "/usr/lib/runemodule" to "/usr/lib/i18n".
    In the future, this directory will contain the modules for "iconv",
    "collation", etc.
  - some cosmetic changes.
  - Bug fix for runetype.h; __attribute__((__packed__)) is placed at
    the wrong position and it is invalid unintentionally.
    But, the all members of the structures seem well-aligned.  Thus,
    this bug causes no problem, hopefully.

HEADS UP:
  - /usr/lib/rumemodule is obsoleted.  If you use the multibyte locales,
    you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
  - The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
    Perhaps, the bug fix about __packed__ mentioned above breaks the
    compatibility...  Be careful especially on 64bit platforms.
2002-03-17 22:14:05 +00:00
yamt 5d6c7fdf83 wcwidth's argument is wchar_t. not wint_t. 2002-03-14 21:18:46 +00:00
yamt 9ddf6eb6f6 - give the precedence to LC_ALL environment variable
than other LC_* variables.
- add a hack for LC_MESSAGES for nls.
  (this will be removed when we have a real LC_MESSAGES support.)
2002-02-13 07:59:45 +00:00
yamt 48e0f9a85a add a function to handle alias names.
(primarily for nls, encoding and locale names)
2002-02-13 07:45:52 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
yamt 9827e287a7 fix a long standing bug that setlocale(LC_ALL, NULL)
returns only 5 categories while we have 6 categories.
2002-01-22 17:08:02 +00:00
yamt 9de0432262 remove #if define(lint).
we don't need it anymore since lint has been fixed.
2001-10-28 12:08:43 +00:00
jmc 5e189cb036 Convert to using standard headers/types for values within here.
Wrap the RuneState struct so it only gets visibity to the library compiles
(userland tools such as mklocale don't need to set/get states)
2001-10-20 06:01:13 +00:00
jmc 1919be32df Change the magic -3 for the invalid rune to
#define _DEFAULT_INVALID_RUNE -3

and use it accordingly. Also provides a representation programs such as
mklocale can reference when filling out a new locale from a definition.
2001-10-20 05:59:35 +00:00
yamt 7368604c8e - mblen and mbtowc shouldn't return -2.
- non-restartable functions shouldn't be restartable.
2001-10-09 10:21:48 +00:00
erh b0ed71fe70 Include string.h to get memset prototype. 2001-10-02 01:20:03 +00:00
yamt 1628acde4a add a header used by wcstoul/wcstol.
i forgot it at last commit.
2001-09-28 11:25:37 +00:00
yamt 6eb1cbbb9b fix type in comment 2001-09-28 09:29:17 +00:00
yamt a9c5a86aa9 add wcstod/wcstol/wcstoul. 2001-09-27 16:30:35 +00:00
wiz 58329ea2bf Remove some boring whitespace and fix a section header. 2001-09-16 02:25:37 +00:00
yamt 1aa18a915f update comments 2001-06-22 00:01:47 +00:00
yamt b12809f15e linted. 2001-06-21 19:37:06 +00:00
yamt d14a2355eb sync with latest Citrus XPG4DL.
- mbsrtowcs/wcsrtombs
	- when conversion stopped with terminating-null, set *src null-pointer.
	- if dst isn't null, ignore len.
	- fix how to treat ___mbrtowc
- mbrtowc
	- fix problem that terminating null charactor wasn't stored.
	- fix problem with stateful encoding.
		(when src points to escape sequence + '\0', mbstate wasn't initialized)
	- fix return value when restarted.
		XXX euctw and big5 are not tested.
- iso2022-jp
	- fix mbrtowc with imcomplete sequence.
- etc
	- make sure mbstate is initialized. (___rune_initstate is called)
		primarily to fix mbsinit for iso2022.
	- sync citrus Id
2001-06-21 02:20:24 +00:00
uwe 06f9773006 Unbalanced quote in RETURN VALUES section header. 2001-06-06 22:47:34 +00:00
kleink 6d12e22df8 C89/AMD1: mbsrtowcs() and wcsrtombs() are not to return the terminating
null; also correct the corresponding conversion loop exit in mbsrtowcs().
From YAMAMOTO Takashi in PR lib/13016.
2001-05-26 13:18:42 +00:00
kristerw 13aabc248d Make sure that we don't free() through an uninitialized pointer in error
handling code.
2001-05-26 00:35:20 +00:00
kleink 08c6392504 Need <limits.h> in _CTYPE_PRIVATE environments. 2001-04-17 20:12:31 +00:00
kleink 232fcc90e3 isoC -> isoC90. 2001-04-14 17:13:23 +00:00
tshiozak 9d67eaba15 Remove UTF-2. UTF-2 is superceded by UTF-8. 2001-04-01 17:45:39 +00:00
tshiozak 0c95c16c79 Remove UTF-2. UTF-2 is superceded by UTF-8.
see also:
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0000.html
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0001.html
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0002.html
2001-04-01 17:43:07 +00:00
tshiozak 636743250b fix a bit bug. this bug normally causes no problem. 2001-03-26 20:06:46 +00:00
tshiozak 6c89983bd3 support nl_langinfo(CODESET). 2001-03-26 19:55:42 +00:00
jdolecek 26426e6fac Note this conforms to ANSI C as well. Fixes standards/12157. 2001-02-20 11:36:01 +00:00
wiz 3a1b1621fc Add casts to please lint. Reviewed by christos. 2001-02-09 10:55:48 +00:00
christos 4495412c88 de-lint. 2001-02-06 18:48:41 +00:00
tsutsui 500e09d2ad Include string.h for mem*() prototypes. 2001-01-27 05:40:18 +00:00
tsutsui dfd4bf0465 Include string.h for memset() prototype. 2001-01-26 13:42:11 +00:00
jdolecek 90bf9d58e5 make tags[] and flags[] const 2001-01-25 09:46:44 +00:00
itojun 2dcdf0fcb8 (finally!) enable multibyte LC_CTYPE locale support.
the functionality will be available for dynamic-linked binary only, due to
limitation with dlopen() from within statically-linked binaries.
(statically-linked binary can still enjoy singlebyte LC_CTYPE locale support)

from citrus project.
2001-01-25 09:21:57 +00:00
itojun 1aba0c48bc split setlocale.c for smaller footprint (do not pull things in too much).
have magic number check in locale modules.
rename: lib/libc/locale/setlocale_sb.c -> setlocale1.c

NOTE: this commit does not enable multibyte locale support, yet.
2001-01-25 01:25:05 +00:00
itojun 4d99bddbd0 declare (internal) encoding state for 'NONE' encoding, for future
thread safety.  no externally visible difference.
2001-01-22 04:42:40 +00:00
itojun f972083e05 move __mb_cur_max to dedicated *.o, so that we do not pull in
locale stuff just by calling printf().
2001-01-22 00:29:46 +00:00
itojun ce8aa899c9 wording in comment 2001-01-21 07:13:23 +00:00
itojun cdc6b98589 have _CTYPE_SW1 to all isprint() chars. important for future curses multibyte
support.
2001-01-21 04:34:47 +00:00
itojun 527f9efec1 comment; we do not set digit value (lowermost 8bit) at the moment
when we read in old locale declaration file.
2001-01-21 04:34:11 +00:00
itojun 09c87b61bb check _B (old isprint && !isgraph) when we generate _CTYPE_R (isprint).
otherwise, iso-8859-x locale will become incorrect about isprint(0xa0).

XXX too much workaround...
2001-01-21 03:56:27 +00:00
itojun 98641ce4a4 workaround for PR 11993. when we read in old locale file,
- don't really trust _B in the file.
- generate derived bits at runtime - like _CTYPE_R.

TODO: update ctype.h so that it look at RunLocale table.
2001-01-21 03:49:02 +00:00
itojun 6bb7c9da0c avoid exposure of libc internal symbols into public header (wctype.h). 2001-01-20 17:40:09 +00:00
lukem 2e9d6ac8c1 sprinkle in _DIAGASSERT() as appropriate 2001-01-03 15:23:26 +00:00
kleink 20a43da197 C99: add new parameters int_p_cs_precedes, int_n_cs_precedes,
int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn and
int_n_sign_posn to monetary locale information.
2001-01-02 10:53:24 +00:00
itojun b648355aae put _RuneLocale pointer into mbstate_t for better thread safeness 2000-12-30 05:05:57 +00:00
itojun f864e401f9 fix shlib function name for a.out case 2000-12-30 05:05:25 +00:00
itojun 4ab94d919b sync citrus Id part with citrus repository. 2000-12-28 05:27:35 +00:00
itojun 2ea22179ea switch locale module API, from s{get,put}rune to wcrtomb/mbrtowc.
handle intermediate mbstate_t more correctly.
no externally-visible changes here.
2000-12-28 05:22:27 +00:00
itojun 762873adfc re-enable citrus (rune)locale support.
XXX please clean and recompile libc if you get this revision.  UPDATE=yes
may leave obsolete *.o.
2000-12-27 00:57:03 +00:00
itojun b0a406db08 arg mistake to memset 2000-12-26 06:12:09 +00:00
itojun 8e1213a45e convert old style LC_CTYPE ctype table into runelocale table 2000-12-26 00:34:49 +00:00
itojun 6ddc3c8680 read in tolower/ctype table. do not mixup toupper/tolower. 2000-12-26 00:30:51 +00:00
itojun bb629fd1e5 byte default, use (non-citrus) singlebyte locale. if we compile
ld.elf_so with citrus locale, it bombs.
XXX this is shortterm workaround.  if you are willing to test citrus locale,
use RUNE=yes in libc/locale/Makefile.inc.
2000-12-25 23:30:58 +00:00
itojun 67819708f5 indentation 2000-12-25 09:25:15 +00:00
itojun eeed3beffb return _INVALID_RUNE if wchar_t > 0xff, on sgetrune. 2000-12-25 01:39:48 +00:00
itojun 37fc5e01b9 fix LC_ALL behavior again... 2000-12-24 22:24:04 +00:00
itojun 383f218a51 move wcs* and wmem* from lib/libc/locale to lib/libc/string. 2000-12-23 23:14:33 +00:00
itojun d888b02030 overhaul.
(1) alloate two mbstate_t, for input/output, per a file stream.
(2) correct inbound escape sequence processing.
cope with incomplete string better.  keep intermediate state for single shifts.
let C0/C1 go through.

XXX for (1), we should expand FILE structure, but is possible only with
libc major # bump.
2000-12-23 12:37:18 +00:00
itojun 7448c8b5b4 avoid duplicated free() on initialization failure 2000-12-23 11:53:46 +00:00
itojun bbbc605b71 change _INVALID_RUNE value - the old value (0xfffd) was selected when
rune_t was 16bit.

XXX PLEASE REBUILD YOUR LOCALE DEFINITION FILES BY:
# cd share/mklocale; make clean depend; make; make install
2000-12-23 10:52:34 +00:00
itojun 48fa1b17ab error code check mistake in LC_CTYPE handling 2000-12-23 08:22:40 +00:00
itojun ce0a5e58ed cope with runeglue.c failure better 2000-12-22 22:51:22 +00:00
itojun 85339e75d6 for setlocale(LC_CTYPE) failure, make sure to return NULL. 2000-12-22 22:28:09 +00:00
jdolecek b5590faec8 previous change was not complete enough, so finish and make more correct:
for LC_ALL, return success if at least on of categories was loaded
successfully, error if no category was loaded; in the latter case, we don't
need to back off locale changes, since none happened
2000-12-22 16:50:08 +00:00
jdolecek 675dc9d35b __setlocale(): ignore errors in locale category load for LC_ALL - doing so
is not useful. This is same change as in rev 1.17.
2000-12-22 15:25:11 +00:00
itojun 6d24d8c968 set errno on wcrtomb() encoding error, on EILSEQ. 2000-12-22 06:29:40 +00:00
itojun 4d799da3d4 mbrlen is equivalent to mbrtowc with 1st arg NULL (mentioned in spec). 2000-12-22 06:24:15 +00:00
itojun ab9a937270 add wcsl{cat,cpy} 2000-12-22 05:23:27 +00:00
itojun 2c828fd4c7 add wcsl{cat,cpy} - outside of ISO/IEC 9899:1999,
but i believe it should be there.
2000-12-22 05:21:40 +00:00
itojun f4f13f67be ad manpage for wide character string manipulation (wmem*/wcs*) 2000-12-22 04:59:41 +00:00
itojun d74cd8caeb manpage for tow*. 2000-12-22 02:18:58 +00:00
itojun a7365f619e place return value 2000-12-22 02:13:26 +00:00
itojun 2ea45fbc0e manpage for isw*. 2000-12-22 02:03:32 +00:00
itojun 00d1211195 remove bogus comment 2000-12-21 18:24:57 +00:00
itojun d3617fe94e copyright notice for ld.aout_so/shlib.c 2000-12-21 18:22:56 +00:00
itojun 6376847fbd find shlib/func by findshlib() and findfunc(). this nukes DLRUNE_AOUT,
and removes conditionals for library naming.
XXX if we mix a.out library and elf library in /usr/lib/runemodule...
2000-12-21 18:20:03 +00:00
itojun 1bb02cee54 __RCSID 2000-12-21 17:25:32 +00:00
itojun c2cb892f34 handle $LANG and $LC_xx consistently (slash is forbidden). 2000-12-21 17:16:20 +00:00
itojun 0b16e56b29 correct utf8 encoding error 2000-12-21 12:21:38 +00:00
itojun 2cc37d241b abort() is too much 2000-12-21 12:19:44 +00:00
itojun 6bfa292b5d add multibyte locale converters (just for use by testers at this moment,
to be built as dynamically loadable binary)
2000-12-21 12:17:35 +00:00
itojun b7a136db6b support multibytes in isw*/tow*. 2000-12-21 12:13:28 +00:00
itojun 408f4697a6 first import of citrus LC_CTYPE locale. singlebyte only at this moment.
shot-term TODO:
- enable multibyte locales.  this includes loadable locale modules
  (#ifdef DLRUNE).
- populate LC_CTYPE definition files.
- other functions such as iconv()
- make libc functions more friendly with multibyte.
- multilingualize other LC_xx
- torture tests

XXX don't forget to "make depend" when you rebuild libc, multibyte.c is
moved from lib/libc/stdlib to lib/libc/locale.
2000-12-21 11:29:47 +00:00
itojun 4c56e769f6 add dummy wcwidth() and wcswidth(). wcwidth() will be updated later. 2000-12-21 08:30:52 +00:00
itojun b80578d677 correct return type for tow*. 2000-12-21 06:46:07 +00:00
itojun a25075d36a have dummy wctype.h and isw*/tow*. part of libc minor 68 -> 69 crank.
equivalent to is*/to* at this moment.  we'll put wchar_t code in the
near future.
2000-12-21 05:40:56 +00:00
itojun b6ad76f487 add wcs* functions. consier it as part of libc minor crank 68 -> 69.
add decl of WEOF into wchar.h.  ISO/IEC 9899:1999(E)..
2000-12-21 05:12:18 +00:00
christos 6f034c1640 fix const castaway. 2000-12-20 20:57:20 +00:00
itojun 97e0963d33 add wmem* functions, from citrus. bump libc shlib minor. 2000-12-20 14:53:23 +00:00
itojun eb0bc4a58e use strlcpy to guarantee string termination 2000-12-20 11:48:58 +00:00
itojun 1545be872f on setlocale() failure, back out changes made to current_locale[],
and return NULL.  from: From: Shingo WATANABE <nabe@nabechan.org>
2000-12-20 11:44:36 +00:00
veego ba8461727b Include <unistd.h> for the issetugid prototype.
Fix a compile problem on the alpha.
2000-09-09 20:50:33 +00:00
tshiozak fcc188c19e Disallow '/' character in LC_* and LANG environment variable, and
prevent to look up PATH_LOCALE and NLSPATH on setuid/setgid executable.
This is important to prevent to cause some kind of security hole.
2000-09-08 20:56:36 +00:00
kleink bc3eaa0a03 ISO/IEC 9899:1999: MB_CUR_MAX expands to a positive integer expression with
type size_t (not int).

(Incompatible ABI change, ignored due to a window of just two days.)
2000-08-10 10:03:43 +00:00
kleink e12dc92808 RCS Id police: add NetBSD tag, restore unexpanded Id tag from Citrus. 2000-08-10 09:55:32 +00:00
tshiozak 51a53de0d5 Preparation for the future introduction of multibyte locale.
- MB_LEN_MAX is increased to 32.
 - To ensure binary compatibility for old executables
   under multibyte locale, versioned setlocale is added.
 - __mb_len_cur definision is added in setlocale.c
   and enable it in stdlib.h .
   It is also important for multibyte locale stuffs,
   but I just forgot.
2000-08-08 22:31:13 +00:00
matt 6465109449 include <string.h> for mem* 2000-07-01 00:05:27 +00:00
kleink 48e66c2b14 XSH5/C99: in the C/POSIX locale, change the day of month format used in d_t_fmt
(locale's appropriate date and time representation) from %d (single digits
are preceded by 0) to %e (single digits are preceded by a blank).
1999-11-10 09:15:11 +00:00
jdolecek 9fc25cf0bc when loading all locale categories (called with LC_ALL), ignore if
loadlocale() fails - since only LC_CTYPE is implemented and all
other categories return error, code never got to actually
load the ctype locales, as first category tried was LC_COLLATE
and it always failed
1999-10-15 17:17:07 +00:00
lukem d896261208 back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem b48252f365 * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif
1999-09-16 11:44:54 +00:00
kleink 65f6a76c52 Xref nl_langinfo(3). 1999-09-05 09:19:35 +00:00
kleink a7e5956b53 Don't require inclusion of <nl_types.h>. 1999-09-05 09:18:11 +00:00
garbled 38c96853cf Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!
1999-03-22 19:44:33 +00:00
drochner a34eb7c1b7 use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again
1999-02-24 15:05:20 +00:00
christos 2c89343c25 delint 1998-11-13 15:46:52 +00:00
kleink 044e791152 Declaration vs. definition consistency. 1998-10-23 09:44:34 +00:00
kleink ee1afe8b7c Need internal names for snprintf() and vsnprintf(). 1998-10-13 14:19:21 +00:00
mycroft 44436bf77f constify some tables. 1998-07-26 11:11:07 +00:00
fair 1628920950 Fix man to mdoc conversion mistakes, mostly of the form ^\.[A-Z][A-Z] 1998-04-28 07:19:28 +00:00
perry 312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
mikel 665f5a78af fix typo; something called 'yesexpr' shouldn't have a 'n' in it 1997-10-18 05:08:32 +00:00
kleink 2d176dda6e Link localeconv(3) to setlocale(3). 1997-07-15 09:22:31 +00:00
kleink c213a3af8b Add missing `STANDARDS' compliance statements. As we #define _POSIX_VERSION
to 199009L, bump existing statements to 1003.1-1990.
1997-07-14 23:19:39 +00:00
christos 450aa90e6e Fix RCSID's 1997-07-13 19:54:55 +00:00
kleink 691ce5a662 Sync with reality (some facilities are not available yet and will not be
implemented as described in this file);  .Bx police.
1997-07-12 19:13:12 +00:00
perry 4b51b76bec add setlocale.3 man page 1997-07-12 17:52:31 +00:00
perry 371c2f6c48 imported from 4.4-Lite2 1997-07-12 17:50:04 +00:00
kleink dbda158f1f Add support for localized character sets (a.k.a. LC_CTYPE).
Thanks go to Matthias Scheler <tron@lyssa.owl.de> for contributing his initial
work in PR/3592, and to Christos Zoulas for refining it!
1997-06-02 09:52:36 +00:00
kleink 4fd0a6d595 RCSid police. 1997-04-29 16:40:13 +00:00
kleink b678625d16 * Handle cases when 'lang' and friends have been set to "" correctly.
* Fix botch when setting the locale for no specific category.
1997-04-29 13:30:17 +00:00
mrg 071eac5167 KNF. 1997-04-22 12:27:34 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00