Glenn Fowler schrieb:
some of your characters did not translate properly for email

Here is a simpler example:

$ a=( name='ä' )        # lower case a umlaut (unicode=00E4)
$ print $a
( name=ä )      # correct

$ print "$a"
(
        name==Ã
)

Instead of the lower case a umlaut, an upper case A with tilde (unicode 00C3) appears, and the equal is doubled. This happens on an X terminal (urxvt) as well as on a normal Linux tty.

However, with the assignment

$ a=( name=$'\xe4' )

both outputs look fine. I noticed that entering 'ä' (a umlaut) and $'\xe4' produces the same character on the screen, but different byte sequences:

$ print 'ä' | od -x

0000000 a4c3 000a

$ print $'\xe4' | od -x

0000000 0ae4

The same happens under bash, so it might be a matter of some system setting and/or my lack of understanding. Any clarification is appreciated!

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