History log of /freebsd-10-stable/usr.bin/locale/locale.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 310041 13-Dec-2016 vangyzen

MFC r309364 r309367 r309624

locale: fix buffer management

Also, handle signed and unsigned chars, and more gracefully handle
invalid input.

locale: enable more warnings; fix them

Do not set WARNS, so it gets the current default of 6.
Fix the warnings by sprinkling static, const, or strdup.
Make some constant data tables const. Fix whitespace.

Sponsored by: Dell EMC


# 309329 30-Nov-2016 vangyzen

MFC r308824

locale: fix display of "grouping" and "mon_grouping" values

The "grouping" and "mon_grouping" values are arrays of one-byte
integers, not arrays of ASCII characters. Display them in a format
similar to GNU and MacOS.

Sponsored by: Dell EMC


# 309181 25-Nov-2016 ume

MFC r308808, r308809: Lookup locale when print all keywords as well.


# 293290 06-Jan-2016 bdrewery

MFC r289677:

Fix a ton of speelling errors


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 243201 17-Nov-2012 grog

Correctly handle keywords without options.

Reported by: swills@
MFC after: 14 days


# 242851 10-Nov-2012 grog

More style(9) tabs vs. spaces:
- tabs after #define
- Not in comments.

MFC after: 2 weeks


# 242808 08-Nov-2012 grog

Replace spaces by tabs where appropriate.

Reminded by: jh@


# 242743 08-Nov-2012 grog

Make parameters to -c and -k options optional. If no parameters are
supplied, print information for all keywords.

Improve output of -c option, in particular in conjunction with -k
option.

MFC after: 14 days


# 197847 07-Oct-2009 edwin

Add the comment "(FreeBSD only)" to the altmonth_x keywords

MFC after: 1 week


# 197766 05-Oct-2009 edwin

Backout changes for c_fmt, x_fmt and X_fmt, they were coming from
the wrong patches. Apologies.


# 197764 05-Oct-2009 edwin

Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's.
Also modify the "-k list" option to display only fields with a certain prefix.

MFC after: 1 week


# 133014 02-Aug-2004 tjr

Remove la_LN.* from the list of bogus locales. They're incomplete, but
still potentially useful.


# 133013 02-Aug-2004 tjr

Exclude bogus la_LN.* and UTF-8 locales from the output of locale -a
to discourage people from using them.


# 125329 02-Feb-2004 ache

Back out LANG printing changes. POSIX is unclear in this place, but
other systems do that in the old way.


# 125298 01-Feb-2004 ache

Fix printout case when LANG is overwritten by LC_ALL


# 124830 22-Jan-2004 grehan

Userland signed char fixes for PPC build. Problems were using a char
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe


# 116877 26-Jun-2003 phantom

Move scmp() to more appropriate location


# 116876 26-Jun-2003 phantom

Add support of '-m' option to show charmaps (or correctly to say list of
available codesets)

Modify manpages appropriatelly


# 116873 26-Jun-2003 phantom

implement LC_MONETARY's int_* keywords


# 116851 25-Jun-2003 phantom

locale.c:

Use newly added __detect_path_locale() helper to lookup _PathLocale value.
It adds boundary checking for PATH_LOCALE environment variable value and
check for super-user fallback.

Makefile:

Add lib/libc/locale to compiler's include path (for setlocale.h)


# 116845 25-Jun-2003 phantom

Catch up with _PATH_LOCALE move from rune.h to paths.h


# 116675 22-Jun-2003 phantom

Add FreeBSD specific keyword 'list' implementation. 'locale -k list' can
be used to retrieve list of all available keywords now.


# 116618 20-Jun-2003 phantom

Fix few typos and remove two unneeded checks

Noticed by: ache


# 116616 20-Jun-2003 phantom

Fix most warnings, sort prototypes, kill spaces at EOLs


# 116612 20-Jun-2003 phantom

Complete rewrite of locale(1) in order to become POSIX complaint utilitty.

It's possibly not completely complaint with POSIX requirements, but
very close to it now.


# 105239 16-Oct-2002 phantom

Add locale(1). I have used it for while as useful debugging tool
for locale related things. So, I think it could be useful for
others. It's not yet implement (or implement in different manner)
all POSIX things, but I think it's good enough for start.

POSIX conformance related updates and manpage to follow relatively soon.