[PATCH] gdi32: use 7-bit ascii for unhandled encodings

Aurélien Inacio aur36 at mailo.com
Thu Sep 23 16:19:57 CDT 2021


Signed-off-by: Aurélien Inacio <aur36 at mailo.com>
---
 dlls/gdi32/opentype.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/opentype.c b/dlls/gdi32/opentype.c
index 10234c6d5aa..c206d6dae57 100644
--- a/dlls/gdi32/opentype.c
+++ b/dlls/gdi32/opentype.c
@@ -344,8 +344,8 @@ static UINT get_name_record_codepage( enum OPENTYPE_PLATFORM_ID platform, USHORT
         case TT_NAME_MAC_ENCODING_THAI:
             return 10021;
         default:
-            FIXME( "encoding %u not handled, platform %d.\n", encoding, platform );
-            break;
+            WARN( "default ascii encoding used for encoding %d, platform %d\n", encoding, platform );
+            return 20127;
         }
         break;
     case OPENTYPE_PLATFORM_WIN:
@@ -366,8 +366,8 @@ static UINT get_name_record_codepage( enum OPENTYPE_PLATFORM_ID platform, USHORT
         case TT_NAME_WIN_ENCODING_JOHAB:
             return 1361;
         default:
-            FIXME( "encoding %u not handled, platform %d.\n", encoding, platform );
-            break;
+            WARN( "default ascii encoding used for encoding %d, platform %d\n", encoding, platform );
+            return 20127;
         }
         break;
     default:
-- 
2.30.2





More information about the wine-devel mailing list