Subject: 30.0.50; Tramp sudo fails since commit 5c101b1adac

From: Filipp Gunbin <[email-masked]>
Date: Tue, 15 Aug 2023 23:58:02 +0300

Hi,

- emacs -Q
- M-x load-library tramp RET
- M-x set-variable tramp-verbose RET 10 RET
- C-x C-f /sudo::/tmp RET
- <enter password at the prompt>
- Observe hang with message like "Tramp: Opening connection nil for [email-masked] using sudo...failed"
- C-g

*debug tramp* buffer contents attached.

Thanks.

In GNU Emacs 30.0.50 (build 16, x86_64-apple-darwin20.6.0, NS
 appkit-2022.70 Version 11.7.7 (Build 20G1345)) of 2023-08-15 built on
 fgunbin.local
Repository revision: 1db7e8eba961e88181879213dd5374ad9e87ac76
Repository branch: master
System Description:  macOS 11.7.7

Configured using:
 'configure --enable-check-lisp-object-type --with-file-notification=no'

Configured features:
ACL GLIB GNUTLS LCMS2 LIBXML2 MODULES NS PDUMPER PNG RSVG SQLITE3
THREADS TOOLKIT_SCROLL_BARS WEBP XIM ZLIB

Important settings:
  value of $LC_ALL: ru_RU.UTF-8
  value of $LC_CTYPE: UTF-8
  locale-coding-system: utf-8-unix