With LANG=de_DE.UTF-8, the second output in the following sequence is wrong:

    item=(typeset text)
    txt=$'-\303\274'            # u-umlaut
    item.text="$txt"
    print -- "${item.text}"     # -\303\274 (OK)
    eval "arr[0]=$item"
    print -- "${arr[0].text}"   # -\374 (WRONG)

Whith LANG=C, both are equal and correct. The error seems to occur whenever a character not in the [:word:] class is followed by a multi-byte character.

Regards,
Bernd

--
Bernd Eggink
[EMAIL PROTECTED]
http://sudrala.de
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to