bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61168: 28.2; tramp/sudo not support Chinese environment


From: Robert Pluim
Subject: bug#61168: 28.2; tramp/sudo not support Chinese environment
Date: Mon, 30 Jan 2023 13:43:37 +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
-- 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]