summaryrefslogtreecommitdiff
path: root/src/os_mac_conv.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-03-04 23:39:37 +0000
committerBram Moolenaar <Bram@vim.org>2005-03-04 23:39:37 +0000
commit19a09a189379659b917cf5ccff78f3e5ec061015 (patch)
tree806d594bf7af04ef956c0c96ad64adfcd96325dc /src/os_mac_conv.c
parent7383034c0ab657158c4c69146254beffdea4859e (diff)
downloadvim-git-19a09a189379659b917cf5ccff78f3e5ec061015.tar.gz
updated for version 7.0055v7.0055
Diffstat (limited to 'src/os_mac_conv.c')
-rw-r--r--src/os_mac_conv.c8
1 files changed, 7 insertions, 1 deletions
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;
+ }
}
/*