* file coding problem for .emacs file
@ 2011-06-23 0:49 ishi soichi
2011-06-23 7:06 ` Andreas Röhler
2011-06-23 7:17 ` Eli Zaretskii
0 siblings, 2 replies; 3+ messages in thread
From: ishi soichi @ 2011-06-23 0:49 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]
Emacs23.2
MacOSX SnowLeopard
Hi. I normally set Emacs to that it can show Japanese characters, and it was
fine until yesterday.
The comments in .emacs file are in Japanese. And these comments have
suddenly become corrupt. All Japanese fonts are messed up and unable to
read
I changed many settings but I am not sure what exactly caused this problem.
So I tried...
1. commented the entire .emacs file. But no change. The mode-line shows
"-=:-- .emacs " so file-coding system must be wrong.
2. I uncommented a part of the regular setting,
(set-language-environment 'Japanese)
(prefer-coding-system 'utf-8)
and rebooted Emacs. But it still gives the same problem.
3. I implemented "set-buffer-file-coding-system" (default was nil). Then I
changed that to shift-jis and utf-8. It does no improve the situation at
all.
Could anyone guess what the problem is ?
Thanks in advance.
soichi
When .emacs file is loaded, it looks like Emacs reads some cached (?) data
hidden somewhere, which I cannot find.
[-- Attachment #2: Type: text/html, Size: 1371 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: file coding problem for .emacs file
2011-06-23 0:49 file coding problem for .emacs file ishi soichi
@ 2011-06-23 7:06 ` Andreas Röhler
2011-06-23 7:17 ` Eli Zaretskii
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2011-06-23 7:06 UTC (permalink / raw)
To: help-gnu-emacs
Am 23.06.2011 02:49, schrieb ishi soichi:
> Emacs23.2
> MacOSX SnowLeopard
>
> Hi. I normally set Emacs to that it can show Japanese characters, and it was
> fine until yesterday.
>
> The comments in .emacs file are in Japanese. And these comments have
> suddenly become corrupt. All Japanese fonts are messed up and unable to
> read
>
> I changed many settings but I am not sure what exactly caused this problem.
>
> So I tried...
>
> 1. commented the entire .emacs file. But no change. The mode-line shows
> "-=:-- .emacs " so file-coding system must be wrong.
> 2. I uncommented a part of the regular setting,
>
> (set-language-environment 'Japanese)
> (prefer-coding-system 'utf-8)
>
> and rebooted Emacs. But it still gives the same problem.
>
> 3. I implemented "set-buffer-file-coding-system" (default was nil). Then I
> changed that to shift-jis and utf-8. It does no improve the situation at
> all.
>
> Could anyone guess what the problem is ?
>
> Thanks in advance.
>
> soichi
>
> When .emacs file is loaded, it looks like Emacs reads some cached (?) data
> hidden somewhere, which I cannot find.
>
Hi,
experienced a similar problem in earlier times with German umlauts for
example.
Here something went wrong when saving. For example when saved from
XEmacs it was destroyed for GNU.
Keeping it under version-control now so may check out an earlier version
if that happens.
Good luck,
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: file coding problem for .emacs file
2011-06-23 0:49 file coding problem for .emacs file ishi soichi
2011-06-23 7:06 ` Andreas Röhler
@ 2011-06-23 7:17 ` Eli Zaretskii
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2011-06-23 7:17 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Thu, 23 Jun 2011 09:49:03 +0900
> From: ishi soichi <soichi777@gmail.com>
>
> Hi. I normally set Emacs to that it can show Japanese characters, and it was
> fine until yesterday.
>
> The comments in .emacs file are in Japanese. And these comments have
> suddenly become corrupt. All Japanese fonts are messed up and unable to
> read
Are the problems only with .emacs, or with visiting any file that has
Japanese text in it?
> 1. commented the entire .emacs file. But no change. The mode-line shows
> "-=:-- .emacs " so file-coding system must be wrong.
The `=' means .emacs was read as a binary file, with no encoding
conversions. That would explain why you see it garbled.
> 2. I uncommented a part of the regular setting,
>
> (set-language-environment 'Japanese)
> (prefer-coding-system 'utf-8)
>
> and rebooted Emacs. But it still gives the same problem.
>
> 3. I implemented "set-buffer-file-coding-system" (default was nil). Then I
> changed that to shift-jis and utf-8. It does no improve the situation at
> all.
What happens if you force Emacs to decode the file as UTF-8? Like
this:
C-x RET c utf-8 RET C-x C-f ~/.emacs RET
Does this show your .emacs correctly?
Also, try starting Emacs with "emacs -Q", then manually visit ~/.emacs
and see if it still displays garbled.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-23 7:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23 0:49 file coding problem for .emacs file ishi soichi
2011-06-23 7:06 ` Andreas Röhler
2011-06-23 7:17 ` Eli Zaretskii
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).