1
0
forked from aniani/vim

patch 7.4.1140

Problem:    Recognizing <sid> does not work when the language is Turkish.
            (Christian Brabandt)
Solution:   Use MB_STNICMP() instead of STNICMP().
This commit is contained in:
Bram Moolenaar
2016-01-19 20:51:32 +01:00
parent fce7b3d24f
commit e266d6d664
2 changed files with 6 additions and 2 deletions

View 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;