unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1456: Cannot Put Non-ASCII Characters in Init Files
@ 2008-12-10 14:06 Chong Yidong
  2008-12-10 17:19 ` Bostjan Vilfan
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2008-12-10 14:06 UTC (permalink / raw)
  To: Bostjan Vilfan; +Cc: 1456

> See for example the files buff-menu.el and ibuffer.el in the Emacs
> distribution (you can use M-x locate-library) for the two ways to
> specify coding. Don't forget it must be a comment line in the "first
> line in file" method.
>
> Beyond that, any problem may be specific to your init file. Start with
> an empty one and see that works. Then remove a half at a time from the
> real file until you narrow down the problem. Starting with
> "--debug-init" can also help.

Did you manage to track down the problem?






^ permalink raw reply	[flat|nested] 4+ messages in thread
* bug#1456: Cannot Put Non-ASCII Characters in Init Files
@ 2008-11-29 17:51 Bostjan Vilfan
  2008-12-10  2:57 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Bostjan Vilfan @ 2008-11-29 17:51 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 3848 bytes --]

--text follows this line--

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 bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

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

This is most probably not a bug; but needs some input from an expert.
In Section 57.6.5 of the Emacs manual (Non-ASCII Characters in Init Files) it is stated
that to use non-ASCII characters the init file must start with a line of the form:
-*-coding: <coding system name> -*-

I tried that with coding system equal to utf-8 and got the following error:

Debugger entered--Lisp error: (void-variable \337-*-coding:)
  eval-buffer(#<buffer   *load*> nil "c:/Documents and Settings/Bostjan/My Documents/.emacs.d/init.el" nil t)  ;  Reading at buffer position 12
  load-with-code-conversion("c:/Documents and Settings/Bostjan/My Documents/.emacs.d/init.el" "c:/Documents and Settings/Bostjan/My Documents/.emacs.d/init.el" t t)
  load("c:/Documents and Settings/Bostjan/My Documents/.emacs.d/init" t t)
  #[nil ^H\205\276^@  \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033 etc.


When I replaced the first line as described above with the following three
lines at the end

;; Local Variables: **
;; coding:utf-8 **
;; End: **


I got a different error:

Debugger entered--Lisp error: (error "Invalid modifier in a string") etc.

any advice would be appreciated
Regards
Bostjan

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
c:/Program Files/GNU/Emacs/emacs-22.3/etc/DEBUG for instructions.



In GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
 of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

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: ENU
  locale-coding-system: cp1250
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  encoded-kbd-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
  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:
<help-echo> <switch-frame> <switch-frame> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<switch-frame> <tool-bar> <kill-buffer> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<tool-bar> <one-window> <help-echo> <help-echo> M-x 
o r f i l e <return> <kp-down> <kp-down> <kp-down> 
<tab> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<down-mouse-1> <mouse-2> <help-echo> <tool-bar> <kill-buffer> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<buffer> "*GNU Emacs*" <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<tool-bar> <help>

Recent messages:
Preparing diary...done
Preparing diary...done
Preparing diary...done
Preparing diary...done
Preparing diary...done
Preparing diary...done
Preparing diary...done
For information about GNU Emacs and the GNU system, type C-h C-a.
CHILDREN
Loading emacsbug...done

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-10 14:06 bug#1456: Cannot Put Non-ASCII Characters in Init Files Chong Yidong
2008-12-10 17:19 ` Bostjan Vilfan
  -- strict thread matches above, loose matches on Subject: below --
2008-11-29 17:51 Bostjan Vilfan
2008-12-10  2:57 ` Glenn Morris

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