summaryrefslogtreecommitdiffstats
path: root/usr.bin/locale/locale.c
Commit message (Collapse)AuthorAgeFilesLines
* Correctly handle keywords without options.grog2012-11-171-2/+2
| | | | | Reported by: swills@ MFC after: 14 days
* More style(9) tabs vs. spaces:grog2012-11-101-25/+25
| | | | | | | - tabs after #define - Not in comments. MFC after: 2 weeks
* Replace spaces by tabs where appropriate.grog2012-11-081-38/+38
| | | | Reminded by: jh@
* Make parameters to -c and -k options optional. If no parameters aregrog2012-11-081-12/+19
| | | | | | | | | supplied, print information for all keywords. Improve output of -c option, in particular in conjunction with -k option. MFC after: 14 days
* Add the comment "(FreeBSD only)" to the altmonth_x keywordsedwin2009-10-071-12/+12
| | | | MFC after: 1 week
* Backout changes for c_fmt, x_fmt and X_fmt, they were coming fromedwin2009-10-051-3/+0
| | | | the wrong patches. Apologies.
* Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's.edwin2009-10-051-6/+32
| | | | | | Also modify the "-k list" option to display only fields with a certain prefix. MFC after: 1 week
* Remove la_LN.* from the list of bogus locales. They're incomplete, buttjr2004-08-021-1/+1
| | | | still potentially useful.
* Exclude bogus la_LN.* and UTF-8 locales from the output of locale -atjr2004-08-021-1/+11
| | | | to discourage people from using them.
* Back out LANG printing changes. POSIX is unclear in this place, butache2004-02-021-10/+11
| | | | other systems do that in the old way.
* Fix printout case when LANG is overwritten by LC_ALLache2004-02-011-11/+10
|
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-221-1/+1
| | | | | | | | | 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
* Move scmp() to more appropriate locationphantom2003-06-261-10/+9
|
* Add support of '-m' option to show charmaps (or correctly to say list ofphantom2003-06-261-5/+47
| | | | | | available codesets) Modify manpages appropriatelly
* implement LC_MONETARY's int_* keywordsphantom2003-06-261-2/+32
|
* locale.c:phantom2003-06-251-7/+5
| | | | | | | | | | 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)
* Catch up with _PATH_LOCALE move from rune.h to paths.hphantom2003-06-251-1/+1
|
* Add FreeBSD specific keyword 'list' implementation. 'locale -k list' canphantom2003-06-221-97/+138
| | | | be used to retrieve list of all available keywords now.
* Fix few typos and remove two unneeded checksphantom2003-06-201-4/+3
| | | | Noticed by: ache
* Fix most warnings, sort prototypes, kill spaces at EOLsphantom2003-06-201-27/+36
|
* Complete rewrite of locale(1) in order to become POSIX complaint utilitty.phantom2003-06-201-84/+400
| | | | | It's possibly not completely complaint with POSIX requirements, but very close to it now.
* Add locale(1). I have used it for while as useful debugging toolphantom2002-10-161-0/+214
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.
OpenPOWER on IntegriCloud