zsh-workers
 help / color / mirror / code / Atom feed
* $'\uXXXX'
@ 2007-11-06  7:44 Stephane Chazelas
  2007-11-06 10:05 ` $'\uXXXX' Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Stephane Chazelas @ 2007-11-06  7:44 UTC (permalink / raw)
  To: Zsh hackers list

Hiya,

according to the manual:

  A string enclosed between `$'' and `'' is processed the same
  way as the string arguments of the print builtin, and the
  resulting string is considered to be entirely quoted.  A
  literal `'' character can be included in the string by using
  the `\'' escape.

But:

~$ print '<\u0041>'
<A>
~$ printf '%s\n' $'<\u0041>'
<>

~$ locale
LANG=en_GB.ISO-8859-15
LC_CTYPE=en_US.ISO-8859-15
LC_NUMERIC="en_GB.ISO-8859-15"
LC_TIME="en_GB.ISO-8859-15"
LC_COLLATE="en_GB.ISO-8859-15"
LC_MONETARY="en_GB.ISO-8859-15"
LC_MESSAGES="en_GB.ISO-8859-15"
LC_PAPER="en_GB.ISO-8859-15"
LC_NAME="en_GB.ISO-8859-15"
LC_ADDRESS="en_GB.ISO-8859-15"
LC_TELEPHONE="en_GB.ISO-8859-15"
LC_MEASUREMENT="en_GB.ISO-8859-15"
LC_IDENTIFICATION="en_GB.ISO-8859-15"
LC_ALL=

~$ dpkg -l | grep zsh
ii  zsh                                          4.3.4-25                    A shell with lots of features
ii  zsh-beta                                     4.3.4-dev-1+20071029-1      A shell with lots of features (dev tree)

~$ LC_ALL=C
~$ print $'\u00e9'
zsh: character not in range
zsh: segmentation fault  zsh-beta

Cheers,
Stéphane


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-06 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-06  7:44 $'\uXXXX' Stephane Chazelas
2007-11-06 10:05 ` $'\uXXXX' Peter Stephenson
2007-11-06 20:38   ` $'\uXXXX' Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).