Bug 997

Summary: Problems with showing ukrainian letters.
Product: Sisyphus Reporter: StrA~ <sav>
Component: emacs-commonAssignee: Ivan Zakharyaschev <imz>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P4 CC: sbolshakov
Version: unstable   
Hardware: all   
OS: Linux   

Description StrA~ 2002-06-13 16:58:57 MSD
After command:
M-x set-default-font -*-koi8-u
it dosn\'t show ukrainian (not from koi8-r) symbols correctly...
---

---

Comment 1 imz 2002-11-09 20:57:59 MSK
in emacs-21.2-alt10 by refining the regexp for koi8-r font encoding:

--- emacs-21.2.orig/lisp/language/cyrillic.el   Fri Apr 12 21:07:11 2002                                                                                          
+++ emacs-21.2/lisp/language/cyrillic.el        Sun Apr 14 12:35:50 2002                                                                                          
@@ -222,7 +222,8 @@                                                                                                                                               
   \&quot;CCL program to encode Cyrillic chars to KOI font.\&quot;)                                                                                                           
                                                                                                                                                                  
 (setq font-ccl-encoder-alist                                                                                                                                     
-      (cons \'(\&quot;koi8\&quot; . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                            
+      (cons \'(\&quot;koi8-\\\\(1\\\\|r\\\\)\&quot; . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                
+; We need a finer regexp to display Ukrainian correctly (with koi8-u).                                                                                           
                                                                                                                                                                  
 (set-language-info-alist                                                                                                                                         
  \&quot;Cyrillic-KOI8\&quot; `((tutorial . \&quot;TUTORIAL.ru\&quot;)
Comment 2 imz 2002-11-09 20:57:59 MSK
in emacs-21.2-alt10 by refining the regexp for koi8-r font encoding:

--- emacs-21.2.orig/lisp/language/cyrillic.el   Fri Apr 12 21:07:11 2002                                                                                          
+++ emacs-21.2/lisp/language/cyrillic.el        Sun Apr 14 12:35:50 2002                                                                                          
@@ -222,7 +222,8 @@                                                                                                                                               
   \&quot;CCL program to encode Cyrillic chars to KOI font.\&quot;)                                                                                                           
                                                                                                                                                                  
 (setq font-ccl-encoder-alist                                                                                                                                     
-      (cons \'(\&quot;koi8\&quot; . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                            
+      (cons \'(\&quot;koi8-\\\\(1\\\\|r\\\\)\&quot; . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                
+; We need a finer regexp to display Ukrainian correctly (with koi8-u).                                                                                           
                                                                                                                                                                  
 (set-language-info-alist                                                                                                                                         
  \&quot;Cyrillic-KOI8\&quot; `((tutorial . \&quot;TUTORIAL.ru\&quot;)
Comment 3 imz 2003-02-10 22:07:24 MSK
In fact, it\'d be nice if no matter what the default fontset/font is, the Ukrainian letters would be displayed correctly unless the X font with them (koi8-u, cp1251, iso8859-5) is unavailable.
Comment 4 imz 2003-02-10 22:07:24 MSK
In fact, it\'d be nice if no matter what the default fontset/font is, the Ukrainian letters would be displayed correctly unless the X font with them (koi8-u, cp1251, iso8859-5) is unavailable.
Comment 5 imz 2003-02-11 03:00:15 MSK
emacs-21.2-alt14: if iso8859-5, or cp1251, or koi8-u fonts are available (in this prefernce order), emacs uses them for Cyrillic. And thus displays ukrainina letters correctly (no matter what the font encoding in the fontset specification is). only if no such fonts are available, koi8-r fonts are used.
Comment 6 imz 2003-02-11 03:00:15 MSK
emacs-21.2-alt14: if iso8859-5, or cp1251, or koi8-u fonts are available (in this prefernce order), emacs uses them for Cyrillic. And thus displays ukrainina letters correctly (no matter what the font encoding in the fontset specification is). only if no such fonts are available, koi8-r fonts are used.