Skip to content

Commit e266d6d

Browse files
committed
patch 7.4.1140
Problem: Recognizing <sid> does not work when the language is Turkish. (Christian Brabandt) Solution: Use MB_STNICMP() instead of STNICMP().
1 parent fce7b3d commit e266d6d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/eval.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23628,8 +23628,10 @@ trans_function_name(pp, skip, flags, fdp)
2362823628
eval_fname_script(p)
2362923629
char_u *p;
2363023630
{
23631-
if (p[0] == '<' && (STRNICMP(p + 1, "SID>", 4) == 0
23632-
|| STRNICMP(p + 1, "SNR>", 4) == 0))
23631+
/* Use MB_STRICMP() because in Turkish comparing the "I" may not work with
23632+
* the standard library function. */
23633+
if (p[0] == '<' && (MB_STRNICMP(p + 1, "SID>", 4) == 0
23634+
|| MB_STRNICMP(p + 1, "SNR>", 4) == 0))
2363323635
return 5;
2363423636
if (p[0] == 's' && p[1] == ':')
2363523637
return 2;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1140,
744746
/**/
745747
1139,
746748
/**/

0 commit comments

Comments
 (0)