GNU bug report logs - #4151
non-utf locale leads to errors in `decode-coding-region' (dired)

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Sat, 15 Aug 2009 12:30:04 UTC

Severity: normal

Tags: unreproducible

Done: David Reitter <david.reitter <at> gmail.com>

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 4151 in the body.
You can then email your comments to 4151 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4151; Package emacs. (Sat, 15 Aug 2009 12:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Reitter <david.reitter <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 15 Aug 2009 12:30:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: non-utf locale leads to errors in `decode-coding-region' (dired)
Date: Sat, 15 Aug 2009 08:10:32 -0400
With

export LANG=de_DE.ISO8859-15

on a Mac (NS port), and a directory that contains a folder named  
"Tätää"(i.e. a German umlaut), viewing the directory with `dired'  
fails with an error message.  The trace is below.

The bugs here are
1. `decode-coding-region' signals an error (it is not documented to do  
so)
2. with this locale, "ls -la" will not output utf-8-nfd, even though  
it seems that we expect this.




Debugger entered--Lisp error: (wrong-type-argument wholenump nil)
  decode-coding-region(1 8177 utf-8-nfd)
  insert-directory("/Users/dr/" "-al" nil t)
  dired-insert-directory("/Users/dr/" "-al" nil nil t)
  dired-readin-insert()
  dired-readin()
  dired-internal-noselect("~/" nil)
  dired-noselect("~/")
  run-hook-with-args-until-success(dired-noselect "~/")
  find-file-noselect("~/" nil nil t)





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4151; Package emacs. (Sat, 15 Aug 2009 13:40:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 15 Aug 2009 13:40:05 GMT) Full text and rfc822 format available.

Message #10 received at 4151 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Reitter <david.reitter <at> gmail.com>, 4151 <at> debbugs.gnu.org
Subject: Re: bug#4151: non-utf locale leads to errors in `decode-coding-region'	(dired)
Date: Sat, 15 Aug 2009 16:33:08 +0300
> From: David Reitter <david.reitter <at> gmail.com>
> Date: Sat, 15 Aug 2009 08:10:32 -0400
> Cc: 
> 
> With
> 
> export LANG=de_DE.ISO8859-15
> 
> on a Mac (NS port), and a directory that contains a folder named  
> "Tätää"(i.e. a German umlaut), viewing the directory with `dired'  
> fails with an error message.  The trace is below.
> 
> The bugs here are
> 1. `decode-coding-region' signals an error (it is not documented to do  
> so)
> 2. with this locale, "ls -la" will not output utf-8-nfd, even though  
> it seems that we expect this.

Thanks for the report, but please use report-emacs-bug to do that, or
copy the necessary information it provides to whatever MUA you use to
send.  In this case, essential information about your Emacs version
and date of build is missing.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4151; Package emacs. (Thu, 20 Aug 2009 20:20:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kenichi Handa <handa <at> m17n.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 20 Aug 2009 20:20:10 GMT) Full text and rfc822 format available.

Message #15 received at 4151 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: David Reitter <david.reitter <at> gmail.com>, 4151 <at> debbugs.gnu.org
Subject: Re: bug#4151: non-utf locale leads to errors in
 `decode-coding-region'
	(dired)
Date: Tue, 18 Aug 2009 11:28:12 +0900
In article <14BCF4EE-ACCD-401B-8072-24112978DCBD <at> gmail.com>, David Reitter <david.reitter <at> gmail.com> writes:

> With
> export LANG=de_DE.ISO8859-15

> on a Mac (NS port), and a directory that contains a folder named  
> "Tätää"(i.e. a German umlaut), viewing the directory with `dired'  
> fails with an error message.  The trace is below.

> The bugs here are
> 1. `decode-coding-region' signals an error (it is not documented to do  
> so)

I think it's a bug of ns-utf8-nfd-post-read-conversion that
is set for :post-read-conversion of utf-8-nfd.  Anyone who
wrote it please work on this bug.

> 2. with this locale, "ls -la" will not output utf-8-nfd, even though  
> it seems that we expect this.

Please find why default-file-name-coding-system (or
file-name-coding-system) is set to ntf-8-nfd.

---
Kenichi Handa
handa <at> m17n.org



bug reassigned from package 'emacs' to 'emacs,ns'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Jan 2010 01:53:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4151; Package emacs. (Thu, 11 Feb 2016 20:46:01 GMT) Full text and rfc822 format available.

Message #20 received at 4151 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 4151 <at> debbugs.gnu.org
Subject: Re: bug#4151: non-utf locale leads to errors in
 `decode-coding-region' (dired)
Date: Thu, 11 Feb 2016 20:45:47 +0000
David Reitter <david.reitter <at> gmail.com> writes:

> With
>
> export LANG=de_DE.ISO8859-15
>
> on a Mac (NS port), and a directory that contains a folder named
> "Tätää"(i.e. a German umlaut), viewing the directory with `dired'
> fails with an error message.  The trace is below.
>
> The bugs here are
> 1. `decode-coding-region' signals an error (it is not documented to do
> so)
> 2. with this locale, "ls -la" will not output utf-8-nfd, even though
> it seems that we expect this.

Hi, I can't reproduce this with Emacs 25. Are you still seeing this
problem with a recent build?

-- 
Alan Third




Added tag(s) unreproducible. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Thu, 11 Feb 2016 20:47:02 GMT) Full text and rfc822 format available.

Reply sent to David Reitter <david.reitter <at> gmail.com>:
You have taken responsibility. (Thu, 11 Feb 2016 20:56:02 GMT) Full text and rfc822 format available.

Notification sent to David Reitter <david.reitter <at> gmail.com>:
bug acknowledged by developer. (Thu, 11 Feb 2016 20:56:03 GMT) Full text and rfc822 format available.

Message #27 received at 4151-done <at> debbugs.gnu.org (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 4151-done <at> debbugs.gnu.org
Subject: Re: bug#4151: non-utf locale leads to errors in
 `decode-coding-region' (dired)
Date: Thu, 11 Feb 2016 15:55:47 -0500
On Feb 11, 2016, at 3:45 PM, Alan Third <alan <at> idiocy.org> wrote:
> 
> Hi, I can't reproduce this with Emacs 25. Are you still seeing this
> problem with a recent build?

I do not.  It seems to have been fixed.

Thanks for checking on it.  Closing the bug.






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#4151; Package emacs. (Thu, 11 Feb 2016 21:22:01 GMT) Full text and rfc822 format available.

Message #30 received at 4151 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Third <alan <at> idiocy.org>
Cc: david.reitter <at> gmail.com, 4151 <at> debbugs.gnu.org
Subject: Re: bug#4151: non-utf locale leads to errors in `decode-coding-region'
 (dired)
Date: Thu, 11 Feb 2016 23:21:03 +0200
> From: Alan Third <alan <at> idiocy.org>
> Date: Thu, 11 Feb 2016 20:45:47 +0000
> Cc: 4151 <at> debbugs.gnu.org
> 
> David Reitter <david.reitter <at> gmail.com> writes:
> 
> > With
> >
> > export LANG=de_DE.ISO8859-15
> >
> > on a Mac (NS port), and a directory that contains a folder named
> > "Tätää"(i.e. a German umlaut), viewing the directory with `dired'
> > fails with an error message.  The trace is below.
> >
> > The bugs here are
> > 1. `decode-coding-region' signals an error (it is not documented to do
> > so)
> > 2. with this locale, "ls -la" will not output utf-8-nfd, even though
> > it seems that we expect this.
> 
> Hi, I can't reproduce this with Emacs 25. Are you still seeing this
> problem with a recent build?

I think this was fixed by the recent changes in the way we decode file
names and list directories on OS X HFS filesystems.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 Mar 2016 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 105 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.