Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/string make strerror and strsignal use NL_CAT_LOCALE.



details:   https://anonhg.NetBSD.org/src/rev/b4be98a27ce7
branches:  trunk
changeset: 522233:b4be98a27ce7
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Feb 13 08:05:12 2002 +0000

description:
make strerror and strsignal use NL_CAT_LOCALE.

diffstat:

 lib/libc/string/__strerror.c  |  6 +++---
 lib/libc/string/__strsignal.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 0317eb1b20e8 -r b4be98a27ce7 lib/libc/string/__strerror.c
--- a/lib/libc/string/__strerror.c      Wed Feb 13 08:01:13 2002 +0000
+++ b/lib/libc/string/__strerror.c      Wed Feb 13 08:05:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __strerror.c,v 1.17 2001/08/24 00:11:54 yamt Exp $     */
+/*     $NetBSD: __strerror.c,v 1.18 2002/02/13 08:05:12 yamt Exp $     */
 
 /*
  * Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char *sccsid = "@(#)strerror.c  5.6 (Berkeley) 5/4/91";
 #else
-__RCSID("$NetBSD: __strerror.c,v 1.17 2001/08/24 00:11:54 yamt Exp $");
+__RCSID("$NetBSD: __strerror.c,v 1.18 2002/02/13 08:05:12 yamt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -72,7 +72,7 @@
 #ifdef NLS
        int saved_errno = errno;
        nl_catd catd ;
-       catd = catopen("libc", 0);
+       catd = catopen("libc", NL_CAT_LOCALE);
 #endif
        _DIAGASSERT(buf != NULL);
 
diff -r 0317eb1b20e8 -r b4be98a27ce7 lib/libc/string/__strsignal.c
--- a/lib/libc/string/__strsignal.c     Wed Feb 13 08:01:13 2002 +0000
+++ b/lib/libc/string/__strsignal.c     Wed Feb 13 08:05:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __strsignal.c,v 1.19 1999/09/20 04:39:44 lukem Exp $   */
+/*     $NetBSD: __strsignal.c,v 1.20 2002/02/13 08:05:13 yamt Exp $    */
 
 /*
  * Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char *sccsid = "@(#)strerror.c  5.6 (Berkeley) 5/4/91";
 #else
-__RCSID("$NetBSD: __strsignal.c,v 1.19 1999/09/20 04:39:44 lukem Exp $");
+__RCSID("$NetBSD: __strsignal.c,v 1.20 2002/02/13 08:05:13 yamt Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -66,7 +66,7 @@
 
 #ifdef NLS
        nl_catd catd ;
-       catd = catopen("libc", 0);
+       catd = catopen("libc", NL_CAT_LOCALE);
 #endif
 
        _DIAGASSERT(buf != NULL);



Home | Main Index | Thread Index | Old Index