From: Andreas Schwab <schwab@suse.de>
To: Haoyang Xu <snakehsu@gmail.com>
Cc: 15334@debbugs.gnu.org
Subject: bug#15334: Fwd: bug#15334: 24.3; shell-quote-argument not considering non-ascii paths
Date: Thu, 12 Sep 2013 10:41:26 +0200 [thread overview]
Message-ID: <mvmy5724ekp.fsf@hawking.suse.de> (raw)
In-Reply-To: <CAGHDjn4rwGvTBv5shmewvt3V3Kstbn-=APsE0maXUNZceB=-4g@mail.gmail.com> (Haoyang Xu's message of "Thu, 12 Sep 2013 13:09:31 +0800")
Haoyang Xu <snakehsu@gmail.com> writes:
> Although this works for whitespaces and maybe some other characters (and I
> don't know why), the resulted string will have _two_ escape characters in
> front of every Chinese character.
No, it doesn't.
> $ ls ~/Dropbox/Office\ Work/\\参\\考\\资\\料/
This is not what shell-quote-argument returns.
ELISP> (shell-quote-argument "~/Dropbox/Office Work/参考资料/")
"\\~/Dropbox/Office\\ Work/\\参\\考\\资\\料/"
There is only one backslash before each quoted character.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
next prev parent reply other threads:[~2013-09-12 8:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 3:27 bug#15334: 24.3; shell-quote-argument not considering non-ascii paths Haoyang Xu
2013-09-11 8:11 ` Andreas Schwab
[not found] ` <CAGHDjn6egD84niYYK+ZaBqawTXc8Z=xBtZMtyNosDTxGw4EMUg@mail.gmail.com>
2013-09-12 5:09 ` bug#15334: Fwd: " Haoyang Xu
2013-09-12 8:41 ` Andreas Schwab [this message]
2013-09-12 9:56 ` Haoyang Xu
2013-09-13 13:39 ` Kenichi Handa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mvmy5724ekp.fsf@hawking.suse.de \
--to=schwab@suse.de \
--cc=15334@debbugs.gnu.org \
--cc=snakehsu@gmail.com \
/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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).