On Monday 06 April 2009 21:24:35 jida...@jidanni.org wrote:
> Gentlemen, -x's reporting should just pass the Chinese right back.
> $ set -x; export LC_ALL=$LANG; echo 中文
> + export LC_ALL=zh_TW.UTF-8
> + LC_ALL=zh_TW.UTF-8
> + echo $'\344\270\255\346\226\207'
> 中文

i dont think that's UTF-8.  unicode sure, but not UTF-8.  at any rate, how 
exactly do you suggest differentiating between someone doing echo 
$'\344\270\255' and echo 中 ?  a script that echos unprintable byte sequences 
that happen to form valid unicode sequences should not be displayed as such.

> Or OK, to be fair, even the ASCII should come back as octal escapes.

that's flat out illogical.  printable ASCII is exactly the same in every 
character set (iso/unicode/etc..).
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to