[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61168: 28.2; tramp/sudo not support Chinese environment
From: |
Michael Albinus |
Subject: |
bug#61168: 28.2; tramp/sudo not support Chinese environment |
Date: |
Mon, 30 Jan 2023 12:00:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
ston via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:
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
Thanks for the report. I don't speak Chinese, but adding FULLWIDTH COLON
to the regexp makes sense to me.
Similar problems were reported for Comint (bug#13124) and Eshell
(bug#31075), and both `comint-password-prompt-regexp' and
`eshell-password-prompt-regexp' contain now "[::៖]". I've changed
`tramp-password-prompt-regexp' accordingly.
I've pushed this to the emacs-29 and master branches. Tramp 2.6.0.1,
which will be released later today on GNU ELPA, contains this patch as
well.
Thinking about, it might be worth to declare a respective defconst (in
the master branch). There exists, for example, "﹕" (SMALL COLON), which
might be added to this list, don't know.
Best regards, Michael.