From 19a09a189379659b917cf5ccff78f3e5ec061015 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 4 Mar 2005 23:39:37 +0000 Subject: updated for version 7.0055 --- src/os_mac_conv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/os_mac_conv.c') diff --git a/src/os_mac_conv.c b/src/os_mac_conv.c index 68d46c0f2..eed0ebbe9 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; + } } /* -- cgit v1.2.1