emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coding system of file not recognised correctly


From: Peter Dyballa
Subject: Coding system of file not recognised correctly
Date: Wed, 4 Oct 2006 12:32:52 +0200

Hello!

I have a UTF-8 test file, which comes from the Kermit distribution's utf8.txt. Its name is utf8_txt and it starts with this line to force it into UTF-8:

        ;;; -*- mode: Text; coding: utf-8; -*-

diff (GNU diffutils) 2.8.1 tells me that the only difference between the original file and my private version is:

        0a1
        > ;;; -*- mode: Text; coding: utf-8; -*-

When I launch /usr/local/bin/emacs-22.0.50 -Q it opens utf8.txt (when second file) with a mode-line starting with -u, but utf8_txt gets -E upon opening it first. The next file, when it has UTF-8 contents, is opened with -u in mode-line – and when I open utf8_txt now, it at once gets a -u too!

I can understand that the non-marked utf8.txt gets -E in mode-line when opened for the first time as first file, errare Emacsem est, too (which does indeed happen), but it's hard to accept that the mentioned header line leads to using some Japanese coding system!

When the first file I open is some ISO Latin or Mac-Roman or NeXT or ... encoding, then the first UTF-8 file I open, no matter whether it has the header line mentioned above or not, has -E in mode-line.


In GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.8.0, X toolkit, Xaw3d scroll bars)
of 2006-10-02 on Latsche
X server distributor `The XFree86 Project, Inc', version 11.0.40400000
configured using `configure '--without-ns' '--without-carbon' '--with- x' '--without-sound' '--without-pop' '--with-xpm' '--with-jpeg' '-- with-tiff' '--with-gif' '--with-png' '--enable-locallisppath=/Library/ Application Support/Emacs/calendar22:/Library/Application Support/ Emacs/preview:/Library/Application Support/Emacs/auctex/images:/ Library/Application Support/Emacs/auctex:/Library/Application Support/ Emacs' 'CFLAGS=-pipe -fPIC -fast -mcpu=7450 -mtune=7450 -ftree- vectorize -mpim-altivec -foptimize-register-move -freorder-blocks - freorder-blocks-and-partition -fthread-jumps -fpeephole -fno- crossjumping' 'CPPFLAGS=-no-cpp-precomp -I/usr/include/openssl -I/usr/ local/include -I/sw/include/libpng12 -I/sw/include' 'LDFLAGS=- dead_strip -L/usr/X11R6/lib -L/usr/local/lib -L/sw/lib/ncurses -L/sw/ lib''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  shell-dirtrack-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  view-mode: t


--
Greetings

  Pete

The human animal differs from the lesser primates in his passion for lists of "Ten Best".
                                     -- H. Allen Smith






reply via email to

[Prev in Thread] Current Thread [Next in Thread]