History log of /freebsd-10-stable/usr.bin/locale/
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 26-Nov-2016 ume

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

293290 07-Jan-2016 bdrewery

MFC r289677:

Fix a ton of speelling errors


/freebsd-10-stable/bin/csh/config_p.h
/freebsd-10-stable/sbin/devd/devd.cc
/freebsd-10-stable/sbin/fsck_ffs/fsck.h
/freebsd-10-stable/sbin/fsck_ffs/globs.c
/freebsd-10-stable/sbin/natd/natd.c
/freebsd-10-stable/sbin/newfs_nandfs/newfs_nandfs.c
/freebsd-10-stable/sbin/rcorder/rcorder.c
/freebsd-10-stable/usr.bin/calendar/parsedata.c
/freebsd-10-stable/usr.bin/colldef/parse.y
/freebsd-10-stable/usr.bin/dtc/dtb.hh
/freebsd-10-stable/usr.bin/indent/indent.1
locale.c
/freebsd-10-stable/usr.bin/mkimg/mkimg.1
/freebsd-10-stable/usr.bin/mt/mt.c
/freebsd-10-stable/usr.bin/patch/pch.c
/freebsd-10-stable/usr.bin/pr/egetopt.c
/freebsd-10-stable/usr.bin/sed/compile.c
/freebsd-10-stable/usr.bin/sockstat/sockstat.c
/freebsd-10-stable/usr.bin/vgrind/regexp.c
/freebsd-10-stable/usr.sbin/bhyve/pci_emul.c
/freebsd-10-stable/usr.sbin/bsdconfig/bsdconfig
/freebsd-10-stable/usr.sbin/config/config.h
/freebsd-10-stable/usr.sbin/ctld/ctld.c
/freebsd-10-stable/usr.sbin/fwcontrol/fwmpegts.c
/freebsd-10-stable/usr.sbin/jail/command.c
/freebsd-10-stable/usr.sbin/jail/jailp.h
/freebsd-10-stable/usr.sbin/jail/jailparse.y
/freebsd-10-stable/usr.sbin/jls/jls.c
/freebsd-10-stable/usr.sbin/makefs/cd9660.c
/freebsd-10-stable/usr.sbin/mfiutil/mfiutil.8
/freebsd-10-stable/usr.sbin/nandsim/nandsim.8
/freebsd-10-stable/usr.sbin/nandsim/nandsim.c
/freebsd-10-stable/usr.sbin/nandsim/nandsim_cfgparse.c
/freebsd-10-stable/usr.sbin/ndp/ndp.c
/freebsd-10-stable/usr.sbin/newsyslog/newsyslog.c
/freebsd-10-stable/usr.sbin/pmcstudy/eval_expr.c
/freebsd-10-stable/usr.sbin/ppp/ip.c
/freebsd-10-stable/usr.sbin/ppp/ppp.8
/freebsd-10-stable/usr.sbin/rtsold/rtsold.h
/freebsd-10-stable/usr.sbin/uefisign/magic.h
/freebsd-10-stable/usr.sbin/uefisign/pe.c
/freebsd-10-stable/usr.sbin/ypbind/ypbind.c
/freebsd-10-stable/usr.sbin/ypserv/ypinit.sh
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


243202 18-Nov-2012 grog

Sort options.
Add comment on standards conformity.

MFC after: 14 days


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


233648 29-Mar-2012 eadler

Remove trailing whitespace per mdoc lint warning

Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days


204585 02-Mar-2010 uqs

Always assign WARNS using ?=

- fix some nearby style bugs
- include Makefile.inc where it makes sense and reduces duplication

Approved by: ed (co-mentor)


202532 17-Jan-2010 ed

Raise WARNS for various tools where possible.

Submitted by: Marius NĂ¼nnerich <marius@nuenneri.ch>


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


151934 01-Nov-2005 trhodes

Xref setlocale(3), bump document date.


140458 18-Jan-2005 ru

Use the standard section name.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


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.


129437 19-May-2004 ru

Clean up language and markup.


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


122992 26-Nov-2003 brueffer

Grammar, spelling and punctuation sweep.

Approved by: re (rwatson)


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


116676 22-Jun-2003 phantom

document 'list' keyword & fix few typos


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.


116674 22-Jun-2003 phantom

Add WARNS


116618 20-Jun-2003 phantom

Fix few typos and remove two unneeded checks

Noticed by: ache


116617 20-Jun-2003 phantom

We have manpage now, so remove NOMAN


116616 20-Jun-2003 phantom

Fix most warnings, sort prototypes, kill spaces at EOLs


116613 20-Jun-2003 phantom

Add minimalistic manual page for locale(1)


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.