imp
80f626da54
Adopt SRCTOP in usr.bin
...
Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo
over ${.CURDIR}/../foo for paths in Makefiles.
Differential Revision: https://reviews.freebsd.org/D9932
Sponsored by: Netflix
Silence on: arch@ (twice)
2017-03-12 18:58:44 +00:00
vangyzen
cf7412f843
locale: fix the powerpc build
...
Reported by: markj (and bde, in a way)
MFC after: 3 days
X-MFC with: r309364
Sponsored by: Dell EMC
2016-12-06 15:42:18 +00:00
vangyzen
27e4e37a51
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.
MFC after: 1 week
Sponsored by: Dell EMC
2016-12-01 17:36:31 +00:00
vangyzen
f936ea3345
locale: fix buffer management
...
Also, handle signed and unsigned chars, and more gracefully handle
invalid input.
Submitted by: bde in response to r309331
MFC after: 1 week
Sponsored by: Dell EMC
2016-12-01 16:54:02 +00:00
vangyzen
40fd39fbcd
Include limits.h for CHAR_MAX
...
This was needed on stable/10. Apparently, sys/param.h supplies CHAR_MAX
on head. Include limits.h anyway, for consistency, and because C says so.
Sponsored by: Dell EMC
2016-11-30 18:34:40 +00:00
vangyzen
4790abad81
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.
MFC after: 3 days
Sponsored by: Dell EMC
2016-11-19 02:09:58 +00:00
ume
9cfc82e371
We need to lookup locale when command line arguments
...
are specified, as well.
MFC after: 1 week
2016-11-18 17:18:05 +00:00
ume
f11b3f46a7
Lookup locale when print all keywords as well.
...
Reported by: dumbbell
Reviewed by: dumbbell
MFC after: 1 week
2016-11-18 16:48:37 +00:00
araujo
941cecd070
Use nitems() from sys/param.h.
...
MFC after: 2 weeks.
Sponsored by: gandi.net (BSD Day Taiwan)
2016-07-30 07:04:46 +00:00
bapt
b519ca02d7
Use the nitems() macro
2016-04-17 22:42:48 +00:00
eadler
21a3003f8f
Fix a ton of speelling errors
...
arc lint is helpful
Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com
Differential Revision: https://reviews.freebsd.org/D3337
2015-10-21 05:37:09 +00:00
sjg
008d7c831f
Add META_MODE support.
...
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
sjg
75a137820d
dirdeps.mk now sets DEP_RELDIR
2015-06-08 23:35:17 +00:00
sjg
5860f0d106
Updated dependencies
2014-05-16 14:09:51 +00:00
sjg
1a7e48acf1
Updated dependencies
2014-05-10 05:16:28 +00:00
sjg
6d37b86f2b
Updated dependencies
2013-03-11 17:21:52 +00:00
sjg
0ee5295509
Updated dependencies
2013-02-16 01:23:54 +00:00
obrien
3028e3f8ab
Sync with HEAD.
2013-02-08 16:10:16 +00:00
grog
2382fd4109
Sort options.
...
Add comment on standards conformity.
MFC after: 14 days
2012-11-17 23:52:38 +00:00
grog
2e5b9af6e5
Correctly handle keywords without options.
...
Reported by: swills@
MFC after: 14 days
2012-11-17 23:49:20 +00:00
grog
4dab880c2d
More style(9) tabs vs. spaces:
...
- tabs after #define
- Not in comments.
MFC after: 2 weeks
2012-11-10 06:10:07 +00:00
grog
198e727200
Replace spaces by tabs where appropriate.
...
Reminded by: jh@
2012-11-08 23:46:15 +00:00
grog
ab4526dbe8
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
2012-11-08 02:55:30 +00:00
marcel
9dd41e3647
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
...
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
eadler
1ef5fe44d3
Remove trailing whitespace per mdoc lint warning
...
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
2012-03-29 05:02:12 +00:00
uqs
f8d1dd7a4e
Always assign WARNS using ?=
...
- fix some nearby style bugs
- include Makefile.inc where it makes sense and reduces duplication
Approved by: ed (co-mentor)
2010-03-02 16:58:04 +00:00
ed
ebbfa5188a
Raise WARNS for various tools where possible.
...
Submitted by: Marius Nünnerich <marius@nuenneri.ch>
2010-01-17 21:56:27 +00:00
edwin
369bb1982a
Add the comment "(FreeBSD only)" to the altmonth_x keywords
...
MFC after: 1 week
2009-10-07 21:14:45 +00:00
edwin
6971f85ec4
Backout changes for c_fmt, x_fmt and X_fmt, they were coming from
...
the wrong patches. Apologies.
2009-10-05 07:21:21 +00:00
edwin
5ecdf4b5b2
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
2009-10-05 07:11:19 +00:00
trhodes
df7dbcd03f
Xref setlocale(3), bump document date.
2005-11-01 19:36:17 +00:00
ru
c047ae5475
Use the standard section name.
2005-01-18 20:54:50 +00:00
ru
6cc4b6c220
Added the EXIT STATUS section where appropriate.
2005-01-17 07:44:44 +00:00
tjr
2e77b96f4a
Remove la_LN.* from the list of bogus locales. They're incomplete, but
...
still potentially useful.
2004-08-02 12:50:12 +00:00
tjr
25f68ff9e7
Exclude bogus la_LN.* and UTF-8 locales from the output of locale -a
...
to discourage people from using them.
2004-08-02 12:28:28 +00:00
ru
5d819b4bca
Clean up language and markup.
2004-05-19 10:45:40 +00:00
ache
a9340686f1
Back out LANG printing changes. POSIX is unclear in this place, but
...
other systems do that in the old way.
2004-02-02 16:14:02 +00:00
ache
5ee9967942
Fix printout case when LANG is overwritten by LC_ALL
2004-02-01 10:32:22 +00:00
grehan
2dafdd4f00
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
2004-01-22 07:23:36 +00:00
brueffer
01a16a20fa
Grammar, spelling and punctuation sweep.
...
Approved by: re (rwatson)
2003-11-26 08:38:32 +00:00
phantom
0247d42e0c
Move scmp() to more appropriate location
2003-06-26 11:05:56 +00:00
phantom
5d0b1c2788
Add support of '-m' option to show charmaps (or correctly to say list of
...
available codesets)
Modify manpages appropriatelly
2003-06-26 11:01:03 +00:00
phantom
1cee3fa001
implement LC_MONETARY's int_* keywords
2003-06-26 09:07:53 +00:00
phantom
3a0952afbd
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)
2003-06-25 23:05:11 +00:00
phantom
dabc26f3d3
Catch up with _PATH_LOCALE move from rune.h to paths.h
2003-06-25 22:31:42 +00:00
phantom
156e622cec
document 'list' keyword & fix few typos
2003-06-22 08:39:29 +00:00
phantom
4a4e5e1b0c
Add FreeBSD specific keyword 'list' implementation. 'locale -k list' can
...
be used to retrieve list of all available keywords now.
2003-06-22 08:34:27 +00:00
phantom
fd37a65ee7
Add WARNS
2003-06-22 08:24:53 +00:00
phantom
8672740803
Fix few typos and remove two unneeded checks
...
Noticed by: ache
2003-06-20 13:29:43 +00:00
phantom
867efbedc0
We have manpage now, so remove NOMAN
2003-06-20 13:24:46 +00:00