all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Coding system prefer
@ 2009-03-03 11:46 Maze
  2009-03-03 14:58 ` Jason Rumney
  2009-03-03 21:44 ` Peter Dyballa
  0 siblings, 2 replies; 13+ messages in thread
From: Maze @ 2009-03-03 11:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hello!
I need to work with files in cp1251 and cp866 and i want emacs
autodetect coding system. For correct file opening i try to use coding-
system-priority-list.

I do: prefer-coding-system cp866-dos
Looking C-h С :
Priority order for recognizing coding systems when reading files:
  1. cp866
  2. utf-8 (alias: mule-utf-8)
  3. iso-2022-7bit
  4. iso-2022-7bit-lock (alias: iso-2022-int-1)
etc...
Opening files in cp866 is working correct.

Next, do prefer-coding-system cp1251-dos

Result:
Priority order for recognizing coding systems when reading files:
  1. windows-1251 (alias: cp1251 windows-1251)
  2. utf-8 (alias: mule-utf-8)
  3. iso-2022-7bit
  4. iso-2022-7bit-lock (alias: iso-2022-int-1)
etc...

Opening files in cp1251 is working correct, but in cp866 is not. :(

Then i used (set-coding-system-priority 'cp866 'cp1251) with the same
effect.

How can i use both coding together?


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

end of thread, other threads:[~2009-03-20  9:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-03 11:46 Coding system prefer Maze
2009-03-03 14:58 ` Jason Rumney
2009-03-03 16:18   ` Teemu Likonen
2009-03-03 20:55     ` Maze
2009-03-04  9:11       ` Peter Dyballa
2009-03-04  9:53       ` Fedor Khod'kov
     [not found]       ` <mailman.2324.1236157912.31690.help-gnu-emacs@gnu.org>
2009-03-04 11:01         ` Sergio
2009-03-05  4:19           ` Miles Bader
2009-03-05  8:06             ` Sergio
2009-03-20  9:06               ` Maze
2009-03-04 11:51       ` Fedor Khod'kov
2009-03-04 18:48       ` Eli Zaretskii
2009-03-03 21:44 ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.