Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Don't ask why i was trying to do this...



On 05/11/06, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
On Nov 4,  4:23pm, Mikael Magnusson wrote:
}
} print -z $(eval "echo -n '\\U'{1..200}")
} only pushes up until 3 characters after 'y' to the editing stack.

Hmm, with the latest cvs update I get

schaefer<502> print -z $(eval "echo -n '\\U'{1..200}")
zsh: character not in range
schaefer<503> ^A ^B ^C ^D ^E ^F ^G ^H ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ! " # $ % &
' ( ) 0 1 2 3 4 5 6 7 8 9 @ A B C D E F G H I P Q R S T U V W X Y ` a b c d e f
g h i p q r s t u v w x y ^À ^Á ^Â ^@^Ä ^Å ^Æ ^Ç ^È ^É ^Ð ^Ñ ^Ò ^Ó ^Ô ^Õ ^Ö ^×
^Ø ^Ù

I suspect that NUL byte (displayed as ^@ above) has something to do with
your problem.

(locale is sv_SE)
% print -z $(eval "echo -n '\\U'{1..200}")
% ^A ^B ^C ^D ^E ^F ^G ^H ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ! " # $ % & '
( ) 0 1 2 3 4 5 6 7 8 9 @ A B C D E F G H I P Q R S T U V W X Y ` a b
c d e f g h i p q r s t u v w x y ^À ^Á ^Â
% export LC_ALL=C
% print -z $(eval "echo -n '\\U'{1..200}")
zsh: character not in range
% ^A ^B ^C ^D ^E ^F ^G ^H ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ! " # $ % & '
( ) 0 1 2 3 4 5 6 7 8 9 @ A B C D E F G H I P Q R S T U V W X Y ` a b
c d e f g h i p q r s t u v w x y
% export LC_ALL=en_US
% print -z $(eval "echo -n '\\U'{1..200}")
zsh: character not in range
% ^A ^B ^C ^D ^E ^F ^G ^H ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ! " # $ % & '
( ) 0 1 2 3 4 5 6 7 8 9 @ A B C D E F G H I P Q R S T U V W X Y ` a b
c d e f g h i p q r s t u v w x y ^À ^Á ^Â ^@^Ä ^Å ^Æ ^Ç ^È ^É ^Ð ^Ñ
^Ò ^Ó ^Ô ^Õ ^Ö ^× ^Ø ^Ù

--
Mikael Magnusson


Messages sorted by: Reverse Date, Date, Thread, Author