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

File type misclassification



Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Hi,

opening the following file in emacs-snapshot from Ubuntu Edgy
(sorry, I don't have a fresher CVS Emacs at work) will throw the
buffer into PostScript mode, presumably because it starts with "%!".
This seems rather like overkill.

Maybe it is already fixed in CVS: no idea.

%!TEX encoding = UTF-8 Unicode
%
% Example of Greek input
%
\documentclass[a4paper,greek]{europecv}
%\usepackage[T1]{fontenc}
\usepackage[10pt]{type1ec} % To use CB-Greek
\usepackage[greek,english]{babel} % This is mandatory
\usepackage{graphicx}
\ecvlastname{Επώνυμο}
\ecvfirstname{Όνομα}
\ecvaddress{Οδός, αριθμός, ταχυδρομικός κωδικός, πόλη, χώρα (Προαιρετικά, βλ. οδηγίες)}
\ecvtelephone{(Προαιρετικά, βλ. οδηγίες)}
\ecvfax{(Προαιρετικά, βλ. οδηγίες)}
\ecvemail{(Προαιρετικά, βλ. οδηγίες)}
\ecvnationality{(Προαιρετικά, βλ. οδηγίες)}
\ecvgender{(Προαιρετικά, βλ. οδηγίες)}
\ecvdateofbirth{\foreignlanguage{english}{You can use the Latin alphabet.}}

\begin{document}
\selectlanguage{greek}
  \begin{europecv}
  \ecvpersonalinfo
  \end{europecv}
\end{document} 

If emacs crashed, and you have the emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/22.0.50/etc/DEBUG for instructions.


In GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.10.3)
 of 2006-09-19 on rothera, modified by Debian
 (Debian emacs-snapshot package, version 1:20060915-1)
X server distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/22.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.0.50/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.0.50/leim' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''

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

Major mode: PostScript

Minor modes in effect:
  server-buffer-clients: (server <*5*>)
  shell-dirtrack-mode: t
  TeX-PDF-mode: t
  server-mode: t
  desktop-save-mode: t
  tooltip-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

Recent input:
<return> <return> <return> B <backspace> y e s <return> 
q g M-x g n u <tab> C-g C-x C-v <return> n o <return> 
C-c C-n M-x r e v e r t - b u <tab> <return> y e s 
<return> M-x r e p o r t - e m <tab> <return>

Recent messages:
nnml: Reading incoming mail from file...
nnml: Reading incoming mail (no new mail)...done
Opening nndoc server on /tmp/bastmail...done
Checking new news...done
Auto-saving...
Loading ps-mode...done
When done with a buffer, type C-x #
Quit
find-alternate-file: Aborted
Loading emacsbug...done

-- 
David Kastrup

Reply to: