bug-bash
[Top][All Lists]
Advanced

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

Re: Fwd: Non-upstream patches for bash (2014)


From: Eduardo A . Bustamante López
Subject: Re: Fwd: Non-upstream patches for bash (2014)
Date: Sat, 24 Jun 2017 12:41:30 -0500
User-agent: NeoMutt/20170113 (1.7.2)

I was looking through this old thread:
http://seclists.org/oss-sec/2014/q3/851

It looks like the issue reported in there is still there:

  address@hidden:~$ LANG=zh_CN.GBK printf 'echo \u4e57\n' |LANG=zh_CN.GBK bash
  �\
  address@hidden:~$ LANG=en_US.UTF8 printf 'echo \u4e57\n' |LANG=en_US.UTF8 bash
  乗
  address@hidden:~$ LANG=zh_CN.GBK printf 'echo \u4e57\n' |LANG=zh_CN.GBK mksh
  �
  address@hidden:~$ LANG=zh_CN.GBK printf 'echo \u4e57\n' |LANG=zh_CN.GBK ksh
  �\
  address@hidden:~$ LANG=zh_CN.GBK printf 'echo \u4e57\n' |LANG=zh_CN.GBK zsh
  �
(In the case that your font doesn't render the glyph for U+4E57, it's:
http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=4e57)

  address@hidden:~$ LANG=zh_CN.GBK printf '\u4e57' | od -tx1 -An
   81 5c

It looks like it doesn't detect that \x81\x5c is a single character, and
instead treats the multibyte character as separate characters.

-- 
Eduardo Bustamante
https://dualbus.me/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]