[Bug 232374] /bin/sh can not handle ja_JP.eucJP character code

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 18 07:58:19 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232374

            Bug ID: 232374
           Summary: /bin/sh can not handle ja_JP.eucJP character code
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: kh at mogami.com

Description
/bin/sh exits when reading non-ascii characters in ja_JP.eucJP environment!
That is, the /bin/sh can not be used in EUC Japanese environment.

How-To-Repeat:
With 11.2-RELEASE(amd64|i386)

1) set /bin/sh as login-sh then login, or execute "exec sh" in other shell.
2) press key like Alt-A (or Alt-B, Alt-C, .. Alt-1, Alt-4, ..),
   or input eucJP KANJI code.
or 

1) in window opend by "xterm /bin/sh" or "kterm"
2) press key like Alt-A (or Alt-B, Alt-C, .. Alt-1, Alt-4, ..),
   or paste eucJP KANJI code.

The cause of this problem lies in (/usr/src/lib)/)libedit,
which makes it impossible to handle the eucJP character code
with the read_char() function in read.c file.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list