summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-19 20:51:32 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-19 20:51:32 +0100
commite266d6d664d6d743c79797af400b2c01ec746216 (patch)
tree1ffe362d1ab3041e640d2ff71a042a5147b4b4a5
parentfce7b3d24fd18b1486e474e933a95f9090df9973 (diff)
downloadvim-git-e266d6d664d6d743c79797af400b2c01ec746216.tar.gz
patch 7.4.1140v7.4.1140
Problem: Recognizing <sid> does not work when the language is Turkish. (Christian Brabandt) Solution: Use MB_STNICMP() instead of STNICMP().
-rw-r--r--src/eval.c6
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 34fdd67d4..b42ecc78f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index 5a0ed90d3..c1b8f5d93 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1140,
+/**/
1139,
/**/
1138,