GNU bug report logs -
#44513
default value of file-name-coding-system
Previous Next
Reported by: Boruch Baum <boruch_baum <at> gmx.com>
Date: Sun, 8 Nov 2020 09:16:02 UTC
Severity: minor
Tags: notabug
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44513 in the body.
You can then email your comments to 44513 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Sun, 08 Nov 2020 09:16:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Boruch Baum <boruch_baum <at> gmx.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 08 Nov 2020 09:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Shouldn't emacs ship with the default value of variable
file-name-coding-system being equal to that of the default value of
default-file-name-coding-system?
file-name-coding-system => nil
(default-value file-name-coding-system) => nil
default-file-name-coding-system => utf-8-unix
ref: thread on emacs-devel list "fixing url-unhex-string for
unicode/multi-byte charsets" ~November 6, 2020.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Sun, 08 Nov 2020 11:30:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On November 8, 2020 11:15:50 AM GMT+02:00, Boruch Baum <boruch_baum <at> gmx.com> wrote:
> Shouldn't emacs ship with the default value of variable
> file-name-coding-system being equal to that of the default value of
> default-file-name-coding-system?
>
> file-name-coding-system => nil
> (default-value file-name-coding-system) => nil
> default-file-name-coding-system => utf-8-unix
These are 2 separate variables, see the doc string of default-file-name-coding-system. One is for the user to set, thus nil by default, the other is what Emacs thinks should be the OS default. They are separate because Unix filesystems traditionally treat file names as byte streams, without imposing any encoding restrictions on them.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Sun, 08 Nov 2020 11:30:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Sun, 08 Nov 2020 12:28:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
On 2020-11-08 13:29, Eli Zaretskii wrote:
> On November 8, 2020 11:15:50 AM GMT+02:00, Boruch Baum <boruch_baum <at> gmx.com> wrote:
> > Shouldn't emacs ship with the default value of variable
> > file-name-coding-system being equal to that of the default value of
> > default-file-name-coding-system?
> >
> > file-name-coding-system => nil
> > (default-value file-name-coding-system) => nil
> > default-file-name-coding-system => utf-8-unix
>
> These are 2 separate variables, see the doc string of default-file-name-coding-system. One is for the user to set, thus nil by default, the other is what Emacs thinks should be the OS default. They are separate because Unix filesystems traditionally treat file names as byte streams, without imposing any encoding restrictions on them.
I'm proposing that even the one that's 'for the user to set' should have
a sane default. I'm a user, and it never occurred to me I needed to set
that variable (among all the other emacs variables begging a
customization). What percentage of users do you think install emacs and
on their own initiative say, "Of course, I now need to set
file-name-coding-system". If so, maybe it should be part of the official
emacs tutorial (sarcasm)?
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Sun, 08 Nov 2020 12:28:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Sun, 08 Nov 2020 12:59:02 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
On November 8, 2020 2:27:03 PM GMT+02:00, Boruch Baum <boruch_baum <at> gmx.com> wrote:
> On 2020-11-08 13:29, Eli Zaretskii wrote:
> > On November 8, 2020 11:15:50 AM GMT+02:00, Boruch Baum
> <boruch_baum <at> gmx.com> wrote:
> > > Shouldn't emacs ship with the default value of variable
> > > file-name-coding-system being equal to that of the default value
> of
> > > default-file-name-coding-system?
> > >
> > > file-name-coding-system => nil
> > > (default-value file-name-coding-system) => nil
> > > default-file-name-coding-system => utf-8-unix
> >
> > These are 2 separate variables, see the doc string of
> default-file-name-coding-system. One is for the user to set, thus nil
> by default, the other is what Emacs thinks should be the OS default.
> They are separate because Unix filesystems traditionally treat file
> names as byte streams, without imposing any encoding restrictions on
> them.
>
> I'm proposing that even the one that's 'for the user to set' should
> have
> a sane default. I'm a user, and it never occurred to me I needed to
> set
> that variable (among all the other emacs variables begging a
> customization). What percentage of users do you think install emacs
> and
> on their own initiative say, "Of course, I now need to set
> file-name-coding-system". If so, maybe it should be part of the
> official
> emacs tutorial (sarcasm)?
I completely agree with the sane default requirement. Which is why the default is nil, and why users are not required to set file-name-coding-system: nil does TRT. You can see that every day in Emacs if you use non-ASCII file names, because Emacs encodes every file name it passes to the system APIs.
The original issue, btw, was not about what users should do, it was about what Lisp programs processing and interpreting file names should do: they should consult default-file-name-coding-system if the user variable is nil, as it usually is.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Sun, 08 Nov 2020 12:59:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44513
; Package
emacs
.
(Mon, 09 Nov 2020 15:38:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 44513 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> I completely agree with the sane default requirement. Which is why
> the default is nil, and why users are not required to set
> file-name-coding-system: nil does TRT.
Yup; I think everything here works as designed, so I'm closing this bug
report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 09 Nov 2020 15:38:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
44513 <at> debbugs.gnu.org and Boruch Baum <boruch_baum <at> gmx.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 09 Nov 2020 15:38:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 08 Dec 2020 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.