awesome, and thank you! however, utf-8 filenames given on the command
line still do not work... the get turned into iso-8859-1, which is
then utf-8 encoded before saving (?!)

here's my (partial) utf-8 workaround for emacs so far:

(if (string-match "XEmacs\\|Lucid" emacs-version)
   nil
 (condition-case nil (eval
                      (if
                          (string-match "\\.\\(UTF\\|utf\\)-?8$"
                                        (or (getenv "LC_CTYPE")
                                            (or (getenv "LC_ALL")
                                                (or (getenv "LANG")
                                                    "C"))))
                          '(concat (set-terminal-coding-system 'utf-8)
                                   (set-keyboard-coding-system 'utf-8)
                                   (set-default-coding-systems 'utf-8)
                                   (setq file-name-coding-system 'utf-8)
                                   (set-language-environment "UTF-8"))))
   ((error "Language environment not defined: \"UTF-8\"") nil)))

On 3/17/07, Rich Felker <[EMAIL PROTECTED]> wrote:
On Sat, Mar 17, 2007 at 09:51:53AM -0700, Ben Wiley Sittler wrote:
> emacs seems not to handle utf-8 filenames at all, regardless of locale.

(setq file-name-coding-system 'utf-8)

~Rich

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/



--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to