Mercurial > vim
comparison src/eval.c @ 7683:ec434c82f72c v7.4.1140
commit https://github.com/vim/vim/commit/e266d6d664d6d743c79797af400b2c01ec746216
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 19 20:51:32 2016 +0100
patch 7.4.1140
Problem: Recognizing <sid> does not work when the language is Turkish.
(Christian Brabandt)
Solution: Use MB_STNICMP() instead of STNICMP().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Jan 2016 21:00:07 +0100 |
parents | eb9cc96138a3 |
children | 20dc2763a3b9 |
comparison
equal
deleted
inserted
replaced
7682:71ca3427491f | 7683:ec434c82f72c |
---|---|
23626 */ | 23626 */ |
23627 static int | 23627 static int |
23628 eval_fname_script(p) | 23628 eval_fname_script(p) |
23629 char_u *p; | 23629 char_u *p; |
23630 { | 23630 { |
23631 if (p[0] == '<' && (STRNICMP(p + 1, "SID>", 4) == 0 | 23631 /* Use MB_STRICMP() because in Turkish comparing the "I" may not work with |
23632 || STRNICMP(p + 1, "SNR>", 4) == 0)) | 23632 * the standard library function. */ |
23633 if (p[0] == '<' && (MB_STRNICMP(p + 1, "SID>", 4) == 0 | |
23634 || MB_STRNICMP(p + 1, "SNR>", 4) == 0)) | |
23633 return 5; | 23635 return 5; |
23634 if (p[0] == 's' && p[1] == ':') | 23636 if (p[0] == 's' && p[1] == ':') |
23635 return 2; | 23637 return 2; |
23636 return 0; | 23638 return 0; |
23637 } | 23639 } |