[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto-detection of windows-1252 fails
From: |
David De La Harpe Golden |
Subject: |
Re: Auto-detection of windows-1252 fails |
Date: |
Sat, 5 Jan 2008 16:44:19 +0000 |
[this is more appropriate place to note this than the thread Reiner+I
were in in comp.emacs]:
Function set-coding-system-priority in src/coding.c
says it won't actually add two encodings of the
same "coding-system-category" to the priority list. And at least in
emacs-unicode2, iso-latin-1 and windows-1252 are apparently being put
in the same category, "coding-category-charset", unlike, say utf-8 or
sjis. So adding windows-1252 to coding-priority after iso-latin-1
won't do anything without changing more stuff.
main and emacs-unicode2's src/coding.c look like they differ quite a bit
at this stage, but on emacs-unicode2 (I personally don't have a cvs
head version around at the moment to check what it's doing):
(mapcar (lambda (x)
(cons x (coding-system-category x)))
(coding-system-list)) ;; or just '(windows-1252 iso-latin-1))
shows that a lot of encodings are ending up in coding-category-charset.