[MPlayer-DOCS] [homepage]: r2879 - trunk/src/donations.src.en
diego at biurrun.de
Sat Apr 28 16:16:12 CEST 2007
On Sat, Apr 28, 2007 at 10:02:34AM -0400, Rich Felker wrote:
> On Sat, Apr 28, 2007 at 03:43:58PM +0200, Diego Biurrun wrote:
> > > > GNU Emacs has proper UTF-8 support starting from version 22 (and
> > > > prereleases). I'm thinking that XEmacs is behind, is it maintained at
> > > > all these days?
> > >
> > > Both support UTF-8 to varying degrees (GNU basically totally; X very
> > > poorly to the degree that it corrupts files upon load-save cycle even
> > > with no editing between if they contain characters not present in the
> > > nasty internal "MULE" charset). However, neither correctly chooses the
> > > default encoding based on your locale. I have the following lines in
> > > my .emacs:
> > >
> > > (prefer-coding-system 'utf-8)
> > > (setq locale-coding-system 'utf-8)
> > > (set-terminal-coding-system 'utf-8)
> > > (set-keyboard-coding-system 'utf-8)
> > > (set-selection-coding-system 'utf-8)
> > > (setq file-name-coding-system 'utf-8)
> > >
> > > You can also use these if you want to override all automatic detection
> > > of encoding and treat all files as UTF-8:
> > >
> > > (setq coding-system-for-read 'utf-8)
> > > (setq coding-system-for-write 'utf-8)
> > Have you tried GNU emacs 22? UTF-8 support was overhauled quite a bit.
> Actually I use GNU Emacs 23 (although they flame me for calling it
> that even tho that's what it calls itself.. the "real" name is the
> emacs-unicode-2 cvs branch). Emacs 22 and earlier have abysmal m17n
> support with -nw and poor support for complex scripts even with gui.
> So far I haven't seen any area where Emacs 22's UTF-8 support is
> better than Emacs 21's.
> And no, Emacs _still_ does not auto-detect the right encoding... :(
Simple test for me: Open all the MPlayer console message files in emacs.
21 displays garbage, 22 displays the right characters and puts a 'u' in
the toolbar to indicate Unicode ...
More information about the MPlayer-DOCS