unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Confusing font selection with UTF-8 coding
@ 2004-11-13 10:52 Bulent Murtezaoglu
  2004-11-14 17:12 ` Bulent Murtezaoglu
  0 siblings, 1 reply; 2+ messages in thread
From: Bulent Murtezaoglu @ 2004-11-13 10:52 UTC (permalink / raw)


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


I am having an odd problem with Emacs 21.3.  When I save some Turkish text 
with coding iso-8859-9-unix, things are fine but when I use UTF-8 some 
characters end up using a font I don't want.  Here's an example with 
'LATIN SMALL LETTER S WITH CEDILLA' (0xFE in iso-8859-9, 0x015F in Unicode
0xC59F in UTF-8).  I get the below with C-u C-x =

With coding: iso-8859-9-unix (where it is displayed correctly):

  character: ş (07376, 3838, 0xefe)
    charset: latin-iso8859-9
	     (Right-Hand Part of Latin Alphabet 5 (ISO/IEC 8859-9): ISO-IR-148)
 code point: 126
     syntax: word
   category: l:Latin  
buffer code: 0x8D 0xFE
  file code: FE (encoded by coding system iso-latin-5-unix)
       font:
	     -bitstream-bitstream vera sans mono-medium-r-normal--15-83-130-130-m-90-iso8859-9



With coding: UTF-8 (where it is displayed smaller an in a different font):


[-- Attachment #2: Type: text/plain, Size: 569 bytes --]


  character: ş (04472, 2362, 0x93a)
    charset: latin-iso8859-2
	     (Right-Hand Part of Latin Alphabet 2 (ISO/IEC 8859-2): ISO-IR-101)
 code point: 58
     syntax: word
   category: l:Latin  
buffer code: 0x82 0xBA
  file code: 0xC5 0x9F (encoded by coding system utf-8-unix)
       font: -jmk-Neep Alt-Medium-R-Normal--15-140-75-75-C-80-ISO8859-2


What am I doing wrong?  How do I debug this?  Where is latin-iso8859-2 
coming from?  The default font _does_ have the right glyph (?) at the 
proper unicode code point (I double checked with pfaedit).

thanks,

BM

[-- Attachment #3: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: Confusing font selection with UTF-8 coding
  2004-11-13 10:52 Confusing font selection with UTF-8 coding Bulent Murtezaoglu
@ 2004-11-14 17:12 ` Bulent Murtezaoglu
  0 siblings, 0 replies; 2+ messages in thread
From: Bulent Murtezaoglu @ 2004-11-14 17:12 UTC (permalink / raw)



Just to follow up for google's sake:

(un-define-change-charset-order '(ascii latin-iso8859-1 latin-iso8859-9))

seems to have fixed the problem.  With that executed, the right thing
happens.

cheers,

BM

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

end of thread, other threads:[~2004-11-14 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-13 10:52 Confusing font selection with UTF-8 coding Bulent Murtezaoglu
2004-11-14 17:12 ` Bulent Murtezaoglu

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