Commit Graph

47 Commits

Author SHA1 Message Date
lukem 9f3f3adf23 appease gcc -Wuninitialized 2005-06-01 11:08:57 +00:00
yamt 62de7e0c8d dcngettext: don't return stack garbage when there's no usable database. 2005-05-15 09:58:06 +00:00
tshiozak dd416aa868 add plural support. 2005-05-14 17:58:56 +00:00
yamt 4882631e1a correct size to malloc. 2005-04-27 09:51:52 +00:00
yamt c67c589db3 remove unnecessary #include. 2005-04-27 09:50:26 +00:00
wiz 894084c6c3 Correct ngettext arguments; bump date.
From Christian Biere in PR 28144.
2004-11-10 13:46:14 +00:00
tshiozak 922c0d0065 add system dependent strings support.
this hopefully allows to use .mo files generated by gettext-0.12 or later.
2004-09-23 21:35:27 +00:00
tshiozak 29be49b448 - add hash table support.
- make use of __UNCONST() instead of LINTED.
2004-09-23 16:44:26 +00:00
tshiozak f7d656a488 revert the last all changes related to iconv(3). 2004-08-02 13:38:21 +00:00
yamt dc8be105a2 follow the recent iconv(3) prototype change. 2004-08-02 03:15:33 +00:00
uebayasi 456930e651 Don't convert text if *.mo doesn't specify codeset.
Analyzed by Takehiko Nozaki, tested by Sean Davis, OK'ed by yamt.
2004-03-13 04:58:04 +00:00
wiz cef0afe940 Lots of grammar and wording changes from jmc@openbsd, with some
additional consistency changes by me.
2004-01-24 16:58:54 +00:00
yamt 0cb9ad6acb fix a comment; nl_langinfo(CODESET) belongs to LC_CTYPE, not LC_MESSAGES. 2004-01-20 12:04:48 +00:00
yamt 570948990d add an ARGSUSED. 2004-01-18 08:54:02 +00:00
yamt 1318d6326f comment. 2004-01-18 08:53:09 +00:00
yamt f3ec2d5725 implement gettext implicit iconv and bind_textdomain_codeset. 2004-01-18 08:40:40 +00:00
itojun 8047470762 sys/types.h is not needed here. kevlo@openbsd 2004-01-05 19:21:00 +00:00
itojun 0169ab0afa minor KNF 2004-01-02 22:19:51 +00:00
itojun edffd45884 use strlcpy 2004-01-02 12:10:48 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
drochner e0fb4a2b6b -in bindtextdomain(), don't crash if a NULL dirname is passed - return the
current path setting in this case (or default)
-fix return value
-don't copy a string to itself
2003-04-09 14:11:33 +00:00
lukem 2c76065bf9 enable __RCSID() (no need to protect in LIBC_SCCS or !__lint) 2003-03-09 01:02:34 +00:00
jmmv 656722d549 .fn -> .Fn 2003-02-27 20:03:30 +00:00
gmcgarry b4ed1bd48a Add Xref to nls(7). 2003-02-12 02:51:23 +00:00
yamt 6c208635b5 - give the precedence to LC_ALL environment variable
than other LC_* variables.
2002-02-13 08:01:13 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
wiz b9661d6129 Whitespace nits. 2002-01-15 02:47:02 +00:00
yamt 7cd60a32fc fix a bug that uninitialised buffer is used when LANG is like "en_US". 2001-12-29 05:54:36 +00:00
yamt 0c36fb1498 allow relative pathnames as a dirname argument of bindtextdomain(3)
since some autoconf configure scripts depends on this behavior.
2001-12-09 11:11:01 +00:00
yamt 782b5c8829 - change mofile search order according to manpage(=li18nux2000).
- there is no need to fail even if strdup for odomainname&ocname were failed.
- don't modify lpath in lookup_mofile since it may used later(copied to olpath)

(sync with citrus)
2001-09-27 15:29:06 +00:00
yamt 6561169b4d bump up GETTEXT_MMAP_MAX from 64k to 1MB.
64k is too small.
eg. gimp-std-plugins.mo for ja is about 200k.

(sync with citrus)
2001-09-27 15:27:19 +00:00
itojun 7f2bf5471a need __BEGIN/END_DECLS for use with C++ (Arla).
From: ORI Manabu <ori@kuee.kyoto-u.ac.jp>
2001-08-13 09:04:59 +00:00
minoura 3bad25dc55 Sync w/ Citrus.
Do not unmap mo files to make sure the gettext() return values are
valid even when multiple mo files are accessed by turns.
Some applications (GNOME, etc) depends on this behaviour of GNU's
implementation.
2001-02-16 07:20:35 +00:00
minoura b00e307d9c Sync w/ Citrus.
Return NULL when msgid == NULL, per GNU implementation.
2001-02-15 10:48:31 +00:00
itojun 089af300b1 fix mmap() return value validation. comment from freebsd-audit. 2000-12-15 06:37:21 +00:00
itojun 3280f611f6 check strdup failure. reported by freebsd-audit.
sync with citrus.
2000-12-14 02:06:12 +00:00
itojun a09524d498 update bindtextdomain() handling to be conformant to spec. we need to
maintain database for (domain, path).  sync with citrus.
2000-11-03 14:29:22 +00:00
itojun c070a07602 supply _nl_msg_cat_cntr, just to make gettext.m4 happy. sync with citrus.
(I do not get gettext.m4's approach here)
2000-11-02 10:24:48 +00:00
itojun 4dd96530bc make the following behavior compatible with GNU gettext.
bindtextdomain(foo, path)
	textdomain(foo)
and message file is found under "path" only.  sync with citrus.
2000-11-01 03:39:21 +00:00
itojun 511f411d40 we do not allow relative pathname 2000-10-31 16:11:32 +00:00
itojun 099fdc2a17 less warnings on lint. be more friendly with align-picky arch. 2000-10-31 16:02:52 +00:00
itojun 0ad204abb5 fix default domain name handling. why textdomain() and bindtextdomain()
behaves so different?  sync with citrus.
2000-10-31 15:23:04 +00:00
itojun 953ed8c2ba declare .Lb symbol for libintl. 2000-10-31 15:08:29 +00:00
itojun 78c48ba46f remove confusing goto. sync with citrus 2000-10-31 11:08:18 +00:00
itojun 435b1e303d fix read(2) return value validation. sync with citrus 2000-10-31 11:05:22 +00:00
itojun c70cd35ba7 bind_textdomain_codeset() always fails. sync with citrus 2000-10-31 10:53:49 +00:00
itojun bb42e65bfe BSD-licensed libintl, fully compatible with GNU libintl (in GNU gettext).
from Citrus project xpg4dl repository.
2000-10-31 10:45:04 +00:00