From: Robert Pluim <rpluim@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: ston.jia@qq.com, 61168@debbugs.gnu.org
Subject: bug#61168: 28.2; tramp/sudo not support Chinese environment
Date: Mon, 30 Jan 2023 13:43:37 +0100 [thread overview]
Message-ID: <87y1pkxkee.fsf@gmail.com> (raw)
In-Reply-To: <875ycoqocl.fsf@gmx.de> (Michael Albinus's message of "Mon, 30 Jan 2023 12:00:10 +0100")
>>>>> On Mon, 30 Jan 2023 12:00:10 +0100, Michael Albinus <michael.albinus@gmx.de> said:
Michael> ston via "Bug reports for GNU Emacs, the Swiss army knife of text
Michael> editors" <bug-gnu-emacs@gnu.org> writes:
Michael> Hi,
>> https://emacs-china.org/t/tramp-sudo-path-enter-emacs/20595/16
>>
>> the default value of 'tramp-password-prompt-regexp' not support
>> LANGUAGE=zh_CN because : in Chinese environment is ":" ,change `
>> \).*:^@? *` to `\).*[::]\0? *` will solve this problem
Michael> Thanks for the report. I don't speak Chinese, but adding FULLWIDTH COLON
Michael> to the regexp makes sense to me.
Michael> Similar problems were reported for Comint (bug#13124) and Eshell
Michael> (bug#31075), and both `comint-password-prompt-regexp' and
Michael> `eshell-password-prompt-regexp' contain now "[::៖]". I've changed
Michael> `tramp-password-prompt-regexp' accordingly.
Michael> I've pushed this to the emacs-29 and master branches. Tramp 2.6.0.1,
Michael> which will be released later today on GNU ELPA, contains this patch as
Michael> well.
Michael> Thinking about, it might be worth to declare a respective defconst (in
Michael> the master branch). There exists, for example, "﹕" (SMALL COLON), which
Michael> might be added to this list, don't know.
M-x describe-char-fold-equivalences suggests the following:
:: ?\N{COLON}
:: ?\N{FULLWIDTH COLON}
﹕: ?\N{SMALL COLON}
︓: ?\N{PRESENTATION FORM FOR VERTICAL COLON}
And additionally the following if LAX is t:
⩴: ?\N{DOUBLE COLON EQUAL}
although that seems a little much.
Robert
--
next prev parent reply other threads:[~2023-01-30 12:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-29 22:24 bug#61168: 28.2; tramp/sudo not support Chinese environment ston via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-30 11:00 ` Michael Albinus
2023-01-30 12:43 ` Robert Pluim [this message]
2023-02-13 15:00 ` Michael Albinus
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=87y1pkxkee.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=61168@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
--cc=ston.jia@qq.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.