all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* filename coding systems and w32-*-file-name functions
@ 2008-11-25  1:38 Juanma Barranquero
  2008-11-27 13:41 ` martin rudalics
  0 siblings, 1 reply; 13+ messages in thread
From: Juanma Barranquero @ 2008-11-25  1:38 UTC (permalink / raw)
  To: Emacs Devel

Is this to be expected (I don't think so) or should I file a bug report?

ELISP> temporary-file-directory
"c:/DOCUME~1/Juanma/CONFIG~1/Temp/"

ELISP> (w32-long-file-name temporary-file-directory)
"c:/Documents and Settings/Juanma/Configuraci\363n local/Temp/"

ELISP> (decode-coding-string (w32-long-file-name
temporary-file-directory) file-name-coding-system)
#("c:/Documents and Settings/Juanma/Configuración local/Temp/" 0 58
  (charset windows-1252))                 ;;; this one is the correct name

ELISP> (let ((dir (read-directory-name "Dir: ")))    ;;; c:/acción
         (list dir
               (w32-short-file-name dir)
               (w32-long-file-name dir)))
("c:/acción/" nil nil)

ELISP> (let ((dir (read-directory-name "Dir: ")))    ;;; c:/accion
         (list dir
               (w32-short-file-name dir)
               (w32-long-file-name dir)))
("c:/accion/" "c:/accion/" "c:/accion/")

So it seems like w32-(long|short)-file-name have issues with coding
systems and should use (default-)file-name-coding-system.

             Juanma

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

end of thread, other threads:[~2008-12-10 10:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25  1:38 filename coding systems and w32-*-file-name functions Juanma Barranquero
2008-11-27 13:41 ` martin rudalics
2008-11-27 14:24   ` Jason Rumney
2008-11-27 14:46     ` Juanma Barranquero
2008-11-27 14:59       ` Jason Rumney
2008-11-27 15:03         ` Juanma Barranquero
2008-11-27 19:53           ` Eli Zaretskii
2008-11-27 20:24             ` Juanma Barranquero
2008-11-27 20:40               ` Eli Zaretskii
2008-11-27 22:16                 ` Juanma Barranquero
2008-11-28  8:36                   ` Eli Zaretskii
2008-11-30  2:08                     ` Juanma Barranquero
2008-12-10 10:57                       ` Juanma Barranquero

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.