unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: michal@0lock.xyz
Cc: 75207@debbugs.gnu.org
Subject: bug#75207: 29.4; Path conversion from native codepage to UTF-8 fails when Windows is set by default to UTF-8
Date: Mon, 30 Dec 2024 21:13:07 +0200	[thread overview]
Message-ID: <86a5cdnfwc.fsf@gnu.org> (raw)
In-Reply-To: <000001db5ab4$06cec970$146c5c50$@0lock.xyz> (bug-gnu-emacs@gnu.org)

severity 75207 wishlist
thanks

> Date: Mon, 30 Dec 2024 12:12:02 +0000
> From: michal--- via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Emacs generates gibberish UTF-8 characters during conversion from native
> codepage to UTF-8 if experimental default UTF-8 codepage is set on
> Windows.

Please provide the minimum recipe for reproducing this, starting from
"emacs -Q".  What exactly did you convert, and how?  And what problems
did you see, exactly?  Also, what do the following commands produce
inside "emacs -Q"?

  M-: (getenv "ENU") RET
  M-: current-locale-environment RET
  M-: w32-ansi-code-page RET
  M-: (default-value 'buffer-file-coding-system) RET

In general, the UTF-8 codepage on Windows is not (yet) supported.  In
particular, some functions we use in Emacs assume the system codepage
cannot be a multibyte encoding.  Also, invoking subprocesses on
Windows doesn't currently support anything but single-byte encoding of
the program's name and its command-line arguments, for boring
technical reasons.  For that reason, I don't recommend using the UTF-8
codepage, and I don't recommend making UTF-8 the default encoding on
MS-Windows.

That said, presenting a clear recipe could help us gradually improve
support for this, as Windows improves its part in parallel.

Thanks.





  reply	other threads:[~2024-12-30 19:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-30 12:12 bug#75207: 29.4; Path conversion from native codepage to UTF-8 fails when Windows is set by default to UTF-8 michal--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-30 19:13 ` Eli Zaretskii [this message]
     [not found]   ` <003001db5d81$a8f144b0$fad3ce10$@0lock.xyz>
2025-01-03 11:49     ` bug#75207: Fwd: " Michał Lach via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-03 13:23       ` Eli Zaretskii
2025-01-03 14:35         ` michal--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-03 15:25           ` Eli Zaretskii
2025-01-04  9:30             ` Eli Zaretskii
2025-01-04 17:37               ` michal--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-05  5:58                 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86a5cdnfwc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=75207@debbugs.gnu.org \
    --cc=michal@0lock.xyz \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).