Date: Fri, 27 May 2022 21:21:12 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264299] tcsh dirs builtin-command and more can't input/show tilda/reverse_solidus character in LANG=ja_JP.SJIS environment. Message-ID: <bug-264299-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264299 Bug ID: 264299 Summary: tcsh dirs builtin-command and more can't input/show tilda/reverse_solidus character in LANG=3Dja_JP.SJIS environment. Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: alumina@ceramix.compress.to /usr/src/tools/tools/locale/etc/final-maps/map.SJIS fix mapping character. /usr/src/contrib/tcsh/sh.print.c fix core-dumped in show home directory in dirs builtin-command in LANG=3Dja_JP.SJIS environment. --- tools/tools/locale/etc/final-maps/map.SJIS.orig 2018-08-15 20:55:35.0543 59000 +0900 +++ tools/tools/locale/etc/final-maps/map.SJIS 2018-08-15 21:02:32.7805220= 00 +0 900 @@ -163,7 +163,7 @@ <LATIN_CAPITAL_LETTER_Z> \x5a <Z> \x5a <LEFT_SQUARE_BRACKET> \x5b -<YEN_SIGN> \x5c +<REVERSE_SOLIDUS> \x5c <RIGHT_SQUARE_BRACKET> \x5d <CIRCUMFLEX_ACCENT> \x5e <LOW_LINE> \x5f @@ -223,7 +223,7 @@ <LEFT_CURLY_BRACKET> \x7b <VERTICAL_LINE> \x7c <RIGHT_CURLY_BRACKET> \x7d -<OVERLINE> \x7e +<TILDE> \x7e <CONTROL-007F> \x7f <DELETE> \x7f <IDEOGRAPHIC_SPACE> \x81\x40 --- contrib/tcsh/sh.print.c.orig 2018-06-22 08:03:38.000000000 +0900 +++ contrib/tcsh/sh.print.c 2018-08-15 20:01:12.462458000 +0900 @@ -169,9 +169,9 @@ } } else if (!isprint(c) && (ASC(c) < 0x80 || MB_CUR_MAX =3D=3D 1)) { - xputchar('\\' | atr); - xputchar((((c >> 6) & 7) + '0') | atr); - xputchar((((c >> 3) & 7) + '0') | atr); + putraw('\\' | atr); + putraw((((c >> 6) & 7) + '0') | atr); + putraw((((c >> 3) & 7) + '0') | atr); c =3D (c & 7) + '0'; } (void) putraw(c | atr); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264299-227>