Module Name: src
Committed By: perseant
Date: Mon Aug 7 14:27:11 UTC 2017
Modified Files:
src/lib/libc/locale [perseant-stdc-iso10646]: _wctrans_local.h rune.c
src/usr.bin [perseant-stdc-iso10646]: Makefile
Log Message:
Make it compile again when __STDC_ISO_10646__ is not defined.
To generate a diff of this commit:
cvs rdiff -u -r1.9.40.1 -r1.9.40.2 src/lib/libc/locale/_wctrans_local.h
cvs rdiff -u -r1.46.22.2 -r1.46.22.3 src/lib/libc/locale/rune.c
cvs rdiff -u -r1.229 -r1.229.4.1 src/usr.bin/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/locale/_wctrans_local.h
diff -u src/lib/libc/locale/_wctrans_local.h:1.9.40.1 src/lib/libc/locale/_wctrans_local.h:1.9.40.2
--- src/lib/libc/locale/_wctrans_local.h:1.9.40.1 Fri Jul 21 20:22:29 2017
+++ src/lib/libc/locale/_wctrans_local.h Mon Aug 7 14:27:11 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: _wctrans_local.h,v 1.9.40.1 2017/07/21 20:22:29 perseant Exp $ */
+/* $NetBSD: _wctrans_local.h,v 1.9.40.2 2017/08/07 14:27:11 perseant Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
@@ -40,7 +40,7 @@ __END_DECLS
static __inline wint_t
_towctrans_priv(wint_ucs4_t c, _WCTransEntry const *te, const _RuneLocale *rl)
{
- wint_kuten_t ktc;
+ wint_kuten_t ktc = 0;
_citrus_ctype_ucs2kt(rl->rl_citrus_ctype, &ktc, c);
ktc = (_RUNE_ISCACHED(ktc)
Index: src/lib/libc/locale/rune.c
diff -u src/lib/libc/locale/rune.c:1.46.22.2 src/lib/libc/locale/rune.c:1.46.22.3
--- src/lib/libc/locale/rune.c:1.46.22.2 Fri Jul 21 20:22:29 2017
+++ src/lib/libc/locale/rune.c Mon Aug 7 14:27:11 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: rune.c,v 1.46.22.2 2017/07/21 20:22:29 perseant Exp $ */
+/* $NetBSD: rune.c,v 1.46.22.3 2017/08/07 14:27:11 perseant Exp $ */
/*-
* Copyright (c)2010 Citrus Project,
* All rights reserved.
@@ -312,12 +312,10 @@ do { \
#define CONVERT_MAP(name) \
do { \
- wint_ucs4_t map; \
- wint_kuten_t kmap; \
+ wint_kuten_t map; \
int c; \
\
map = _towctrans_priv(wc, _wctrans_##name(rl), rl); \
- _citrus_ctype_ucs2kt(rl->rl_citrus_ctype, &kmap, map); \
if (map == wc || (_citrus_ctype_wctob(rl->rl_citrus_ctype, \
map, &c) || c == EOF)) \
c = i; \
Index: src/usr.bin/Makefile
diff -u src/usr.bin/Makefile:1.229 src/usr.bin/Makefile:1.229.4.1
--- src/usr.bin/Makefile:1.229 Sun May 21 15:28:42 2017
+++ src/usr.bin/Makefile Mon Aug 7 14:27:11 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.229 2017/05/21 15:28:42 riastradh Exp $
+# $NetBSD: Makefile,v 1.229.4.1 2017/08/07 14:27:11 perseant Exp $
# from: @(#)Makefile 8.3 (Berkeley) 1/7/94
.include <bsd.own.mk>
@@ -15,7 +15,7 @@ SUBDIR= apply asa at audio audiocfg \
getopt gettext gprof \
head hexdump iconv id indent infocmp innetgr ipcrm ipcs join jot \
kdump ktrace ktruss lam last lastcomm ldd leave \
- locale locate lock logger login logname look lorder m4 \
+ locale localedef locate lock logger login logname look lorder m4 \
machine mail make man menuc mesg midiplay midirecord mixerctl \
mkcsmapper mkdep mkesdb mkfifo mklocale mkstr mktemp mkubootimage \
moduli msgc msgs \