[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15334: 24.3; shell-quote-argument not considering non-ascii paths
From: |
Kenichi Handa |
Subject: |
bug#15334: 24.3; shell-quote-argument not considering non-ascii paths |
Date: |
Fri, 13 Sep 2013 22:39:29 +0900 |
In article
<CAGHDjn4=QmAgCyouB9=QUGBycrh_CAMJhqM0U8R5UikC8kDV5g@mail.gmail.com>, Haoyang
Xu <snakehsu@gmail.com> writes:
> (shell-quote-argument "/Users/user/$BCfJ8L\$AB<(B/$BCfJ8(Bfile.txt")
> evals to
>
> "/Users/user/\\$BCf(B\\$BJ8(B\\$BL\(B\\$AB<(B/\\$BCf(B\\$BJ8(Bfile.txt"
> The shell-quote-argument function yields the same output under a new
> emacs instance started with `emacs -q`, so this should not be related to
> my configuration.
> A quick look of the function in question shows that it just escapes all
> non-ASCII characters, and the escaped Chinese characters cannot be
> correctly recognized by either bash or zsh.
I agree that such excapes are superfluous, but my bash
recognizes it correctly (my locale is ja_JP.UTF-8).
% mkdir -p \$BCf(B\$BJ8(B\$BL\(B\$AB<(B/\$BCf(B\$BJ8(Bfile.txt
% ls \$BCf(B\$BJ8(B\$BL\(B\$AB<(B
$BCfJ8(Bfile.txt/
---
Kenichi Handa
handa@gnu.org
bug#15334: 24.3; shell-quote-argument not considering non-ascii paths,
Kenichi Handa <=