Here it is. I don't khow how, but i got koi8-1 enc-reg pair
for font -*-helvetica-medium-r-normal--12-*-*-*-p-*-koi8-r.
Maybe something wrong with my fontserver? But talked to other
russian people using GNUstep I've fugured that thay have the
same problem. Here is the patch ("dirty hack" is better name
I think) for [+GSFontInfo encodingForRegistry: encoding:].

Also there is a patch from Alexander Malmberg about
transmute() in GSString.m.

-- 
Regards, Sir Raorn.
AIF5-RIPN, Binec System Administrator.
diff -urN gui-orig/Source/GSFontInfo.m gui/Source/GSFontInfo.m
--- gui-orig/Source/GSFontInfo.m        Wed Mar 20 13:43:44 2002
+++ gui/Source/GSFontInfo.m     Tue Apr 16 14:32:32 2002
@@ -242,6 +242,16 @@
     {
       if ([encoding isEqualToString: @"r"])
        return NSKOI8RStringEncoding;
+      /* FIXME(raorn): This code looks ugly, but it works... */
+      /*               May be changed in the future... */
+      else if ([encoding isEqualToString: @"1"])
+       return NSKOI8RStringEncoding;
+      else if ([encoding isEqualToString: @"c"])
+       return NSKOI8RStringEncoding;
+      else if ([encoding isEqualToString: @"u"])
+       return NSKOI8RStringEncoding;
+      else if ([encoding isEqualToString: @"ub"])
+       return NSKOI8RStringEncoding;
     }
   else if ([registry isEqualToString: @"gb2312.1980"])
     {
diff -urN base-orig/Source/GSString.m base/Source/GSString.m
--- base-orig/Source/GSString.m Mon Apr  8 10:49:40 2002
+++ base/Source/GSString.m      Sun Apr 14 21:34:34 2002
@@ -1663,7 +1663,7 @@
           */
          transmute = NO;
        }
-      else if ([aString canBeConvertedToEncoding: intEnc] == YES)
+      else if (intEnc == defEnc && [aString canBeConvertedToEncoding: intEnc] == YES)
        {
          /*
           * This is an 8-bit character string, but the other string can be

Reply via email to