]> granicus.if.org Git - vim/commitdiff
patch 7.4.1140 v7.4.1140
authorBram Moolenaar <Bram@vim.org>
Tue, 19 Jan 2016 19:51:32 +0000 (20:51 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 19 Jan 2016 19:51:32 +0000 (20:51 +0100)
Problem:    Recognizing <sid> does not work when the language is Turkish.
            (Christian Brabandt)
Solution:   Use MB_STNICMP() instead of STNICMP().

src/eval.c
src/version.c

index 34fdd67d4bfb8dd9a110d683c73f6a01d4134fa8..b42ecc78f1f5ab55e6d4ed65fa94023f868b5024 100644 (file)
@@ -23628,8 +23628,10 @@ theend:
 eval_fname_script(p)
     char_u     *p;
 {
-    if (p[0] == '<' && (STRNICMP(p + 1, "SID>", 4) == 0
-                                         || STRNICMP(p + 1, "SNR>", 4) == 0))
+    /* Use MB_STRICMP() because in Turkish comparing the "I" may not work with
+     * the standard library function. */
+    if (p[0] == '<' && (MB_STRNICMP(p + 1, "SID>", 4) == 0
+                                      || MB_STRNICMP(p + 1, "SNR>", 4) == 0))
        return 5;
     if (p[0] == 's' && p[1] == ':')
        return 2;
index 5a0ed90d34c98e63cb299ca1a1cd387d603a4784..c1b8f5d930e1f27683daac8875d9cb4157c6e7ef 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1140,
 /**/
     1139,
 /**/