Deleted Added
full compact
locale.c (116877) locale.c (124830)
1/*-
2 * Copyright (c) 2002, 2003 Alexey Zelkin <phantom@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2002, 2003 Alexey Zelkin <phantom@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/usr.bin/locale/locale.c 116877 2003-06-26 11:05:56Z phantom $
26 * $FreeBSD: head/usr.bin/locale/locale.c 124830 2004-01-22 07:23:36Z grehan $
27 */
28
29/*
30 * XXX: implement missing era_* (LC_TIME) keywords (require libc &
31 * nl_langinfo(3) extensions)
32 *
33 * XXX: correctly handle reserved 'charmap' keyword and '-m' option (require
34 * localedef(1) implementation). Currently it's handled via

--- 171 unchanged lines hidden (view full) ---

206 "(POSIX legacy)" } /* compat */
207
208};
209#define NKWINFO (sizeof(kwinfo)/sizeof(kwinfo[0]))
210
211int
212main(int argc, char *argv[])
213{
27 */
28
29/*
30 * XXX: implement missing era_* (LC_TIME) keywords (require libc &
31 * nl_langinfo(3) extensions)
32 *
33 * XXX: correctly handle reserved 'charmap' keyword and '-m' option (require
34 * localedef(1) implementation). Currently it's handled via

--- 171 unchanged lines hidden (view full) ---

206 "(POSIX legacy)" } /* compat */
207
208};
209#define NKWINFO (sizeof(kwinfo)/sizeof(kwinfo[0]))
210
211int
212main(int argc, char *argv[])
213{
214 char ch;
214 int ch;
215 int tmp;
216
217 while ((ch = getopt(argc, argv, "ackm")) != -1) {
218 switch (ch) {
219 case 'a':
220 all_locales = 1;
221 break;
222 case 'c':

--- 426 unchanged lines hidden ---
215 int tmp;
216
217 while ((ch = getopt(argc, argv, "ackm")) != -1) {
218 switch (ch) {
219 case 'a':
220 all_locales = 1;
221 break;
222 case 'c':

--- 426 unchanged lines hidden ---