zsh-workers
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: $'\uXXXX'
Date: Tue, 6 Nov 2007 07:44:56 +0000	[thread overview]
Message-ID: <20071106074456.GA5411@sc.homeunix.net> (raw)

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


             reply	other threads:[~2007-11-06  7:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06  7:44 Stephane Chazelas [this message]
2007-11-06 10:05 ` $'\uXXXX' Peter Stephenson
2007-11-06 20:38   ` $'\uXXXX' Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071106074456.GA5411@sc.homeunix.net \
    --to=stephane_chazelas@yahoo.fr \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).