[emacs-w3m:13858] Can't access local directory name containing non-ASCII and ASCII chars

Katsumi Yamaoka <[email protected]> Mon, 13 Dec 2021 11:21:12 +0900
Newsgroups gmane.emacs.w3m
Organization Emacsen advocacy group
Message-ID <[email protected]>
Hi,

Say there are the directories "~/あ/" and "~/あa/"; the system
locale is ja_JP.UTF-8, the file name coding system is utf-8, and
the settings for emacs-w3m are all the default
(so, `w3m-local-directory-view-method' is `w3m-cgi',
 and `w3m-file-name-coding-system' is `euc-japan').

(w3m "~/あ") works, however (w3m "~/あa") doesn't,

In the later case, emacs-w3m says
w3m: Can't load file:///home/yamaoka/、「a/.

With the w3m executable, both `w3m ~/あ' and `w3m ~/あa' work.
Setting `w3m-local-directory-view-method' to `w3m-dtree' makes
emacs-w3m work for both.

Is there a way to fix this `w3m-cgi' problem?, or should we make
`w3m-local-directory-view-method' default to `w3m-dtree'?

Thanks.