Module Name: src
Committed By: riastradh
Date: Mon Aug 19 16:21:47 UTC 2024
Modified Files:
src/tests/lib/libc/locale: t_c16rtomb.c t_c8rtomb.c
Log Message:
t_c8rtomb, t_c16rtomb: Simplify comment.
ESC $ B is technically rather the JIS X 0208-1983 shift sequence, but
since I don't see any way to provoke the JIS X 0208-1978 shift
sequence to come flying out of this conversion (ESC $ @), and I'm not
sure there's any difference in the interpretation, let's just say JIS
X 0208.
PR lib/58612: c8rtomb/c16rtomb/c32rtomb yield suboptimal shift
sequences
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/locale/t_c16rtomb.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/locale/t_c8rtomb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/locale/t_c16rtomb.c
diff -u src/tests/lib/libc/locale/t_c16rtomb.c:1.4 src/tests/lib/libc/locale/t_c16rtomb.c:1.5
--- src/tests/lib/libc/locale/t_c16rtomb.c:1.4 Sun Aug 18 04:51:16 2024
+++ src/tests/lib/libc/locale/t_c16rtomb.c Mon Aug 19 16:21:47 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: t_c16rtomb.c,v 1.4 2024/08/18 04:51:16 riastradh Exp $ */
+/* $NetBSD: t_c16rtomb.c,v 1.5 2024/08/19 16:21:47 riastradh Exp $ */
/*-
* Copyright (c) 2002 Tim J. Robbins
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_c16rtomb.c,v 1.4 2024/08/18 04:51:16 riastradh Exp $");
+__RCSID("$NetBSD: t_c16rtomb.c,v 1.5 2024/08/19 16:21:47 riastradh Exp $");
#include <errno.h>
#include <limits.h>
@@ -174,7 +174,7 @@ ATF_TC_BODY(c16rtomb_iso2022jp_locale_te
(unsigned char)buf[3] == 'J' &&
(unsigned char)buf[4] == 0x5c && /* YEN SIGN */
(unsigned char)buf[5] == 0x5c && /* YEN SIGN */
- (unsigned char)buf[6] == 0x1b && /* shift JIS X 0208-1978 */
+ (unsigned char)buf[6] == 0x1b && /* shift JIS X 0208 */
(unsigned char)buf[7] == '$' &&
(unsigned char)buf[8] == 'B' &&
(unsigned char)buf[9] == 0x25 && /* KATAKANA LETTER A */
Index: src/tests/lib/libc/locale/t_c8rtomb.c
diff -u src/tests/lib/libc/locale/t_c8rtomb.c:1.5 src/tests/lib/libc/locale/t_c8rtomb.c:1.6
--- src/tests/lib/libc/locale/t_c8rtomb.c:1.5 Sun Aug 18 05:00:20 2024
+++ src/tests/lib/libc/locale/t_c8rtomb.c Mon Aug 19 16:21:47 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: t_c8rtomb.c,v 1.5 2024/08/18 05:00:20 riastradh Exp $ */
+/* $NetBSD: t_c8rtomb.c,v 1.6 2024/08/19 16:21:47 riastradh Exp $ */
/*-
* Copyright (c) 2002 Tim J. Robbins
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_c8rtomb.c,v 1.5 2024/08/18 05:00:20 riastradh Exp $");
+__RCSID("$NetBSD: t_c8rtomb.c,v 1.6 2024/08/19 16:21:47 riastradh Exp $");
#include <errno.h>
#include <limits.h>
@@ -216,7 +216,7 @@ ATF_TC_BODY(c8rtomb_iso2022jp_locale_tes
(unsigned char)buf[3] == 'J' &&
(unsigned char)buf[4] == 0x5c && /* YEN SIGN */
(unsigned char)buf[5] == 0x5c && /* YEN SIGN */
- (unsigned char)buf[6] == 0x1b && /* shift JIS X 0208-1978 */
+ (unsigned char)buf[6] == 0x1b && /* shift JIS X 0208 */
(unsigned char)buf[7] == '$' &&
(unsigned char)buf[8] == 'B' &&
(unsigned char)buf[9] == 0x25 && /* KATAKANA LETTER A */