unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired)
@ 2009-08-15 12:10 David Reitter
  2009-08-15 13:33 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Reitter @ 2009-08-15 12:10 UTC (permalink / raw)
  To: Bug-Gnu-Emacs

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)







^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired)
  2009-08-15 12:10 bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired) David Reitter
@ 2009-08-15 13:33 ` Eli Zaretskii
  2009-08-18  2:28 ` Kenichi Handa
  2016-02-11 20:45 ` Alan Third
  2 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2009-08-15 13:33 UTC (permalink / raw)
  To: David Reitter, 4151

> From: David Reitter <david.reitter@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired)
  2009-08-15 12:10 bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired) David Reitter
  2009-08-15 13:33 ` Eli Zaretskii
@ 2009-08-18  2:28 ` Kenichi Handa
  2016-02-11 20:45 ` Alan Third
  2 siblings, 0 replies; 6+ messages in thread
From: Kenichi Handa @ 2009-08-18  2:28 UTC (permalink / raw)
  To: David Reitter, 4151

In article <14BCF4EE-ACCD-401B-8072-24112978DCBD@gmail.com>, David Reitter <david.reitter@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@m17n.org





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired)
  2009-08-15 12:10 bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired) David Reitter
  2009-08-15 13:33 ` Eli Zaretskii
  2009-08-18  2:28 ` Kenichi Handa
@ 2016-02-11 20:45 ` Alan Third
  2016-02-11 20:55   ` David Reitter
  2016-02-11 21:21   ` Eli Zaretskii
  2 siblings, 2 replies; 6+ messages in thread
From: Alan Third @ 2016-02-11 20:45 UTC (permalink / raw)
  To: David Reitter; +Cc: 4151

David Reitter <david.reitter@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired)
  2016-02-11 20:45 ` Alan Third
@ 2016-02-11 20:55   ` David Reitter
  2016-02-11 21:21   ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: David Reitter @ 2016-02-11 20:55 UTC (permalink / raw)
  To: Alan Third; +Cc: 4151-done

On Feb 11, 2016, at 3:45 PM, Alan Third <alan@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.







^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired)
  2016-02-11 20:45 ` Alan Third
  2016-02-11 20:55   ` David Reitter
@ 2016-02-11 21:21   ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2016-02-11 21:21 UTC (permalink / raw)
  To: Alan Third; +Cc: david.reitter, 4151

> From: Alan Third <alan@idiocy.org>
> Date: Thu, 11 Feb 2016 20:45:47 +0000
> Cc: 4151@debbugs.gnu.org
> 
> David Reitter <david.reitter@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-11 21:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-15 12:10 bug#4151: non-utf locale leads to errors in `decode-coding-region' (dired) David Reitter
2009-08-15 13:33 ` Eli Zaretskii
2009-08-18  2:28 ` Kenichi Handa
2016-02-11 20:45 ` Alan Third
2016-02-11 20:55   ` David Reitter
2016-02-11 21:21   ` Eli Zaretskii

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).