diff options
Diffstat (limited to 'src/os_mac_conv.c')
-rw-r--r-- | src/os_mac_conv.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/os_mac_conv.c b/src/os_mac_conv.c index 68d46c0f2b..eed0ebbe96 100644 --- a/src/os_mac_conv.c +++ b/src/os_mac_conv.c @@ -292,7 +292,13 @@ mac_conv_init() if (TECCreateConverter(&gUTF16ToUTF8Converter, utf16_encoding, utf8_canon_encoding) != noErr) - gUTF16ToUTF8Converter = NULL; + { + /* On pre-10.3, Unicode normalization is not available so + * fall back to non-normalizing converter */ + if (TECCreateConverter(&gUTF16ToUTF8Converter, utf16_encoding, + utf8_encoding) != noErr) + gUTF16ToUTF8Converter = NULL; + } } /* |