• R/O
  • SSH

vim: 提交

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

修訂79a23c19108a8b1eb9d1b97d5844fabee6525e23 (tree)
時間2007-08-16 03:41:34
作者vimboss
Commitervimboss

Log Message

updated for version 7.1-079

Change Summary

差異

diff -r 9947133ce85b -r 79a23c19108a src/charset.c
--- a/src/charset.c Wed Aug 15 18:08:50 2007 +0000
+++ b/src/charset.c Wed Aug 15 18:41:34 2007 +0000
@@ -207,7 +207,10 @@
207207 }
208208 while (c <= c2)
209209 {
210- if (!do_isalpha || isalpha(c)
210+ /* Use the MB_ functions here, because isalpha() doesn't
211+ * work properly when 'encoding' is "latin1" and the locale is
212+ * "C". */
213+ if (!do_isalpha || MB_ISLOWER(c) || MB_ISUPPER(c)
211214 #ifdef FEAT_FKMAP
212215 || (p_altkeymap && (F_isalpha(c) || F_isdigit(c)))
213216 #endif
diff -r 9947133ce85b -r 79a23c19108a src/macros.h
--- a/src/macros.h Wed Aug 15 18:08:50 2007 +0000
+++ b/src/macros.h Wed Aug 15 18:41:34 2007 +0000
@@ -54,10 +54,12 @@
5454
5555 /*
5656 * toupper() and tolower() that use the current locale.
57- * On some systems toupper()/tolower() only work on lower/uppercase characters
57+ * On some systems toupper()/tolower() only work on lower/uppercase
58+ * characters, first use islower() or isupper() then.
5859 * Careful: Only call TOUPPER_LOC() and TOLOWER_LOC() with a character in the
5960 * range 0 - 255. toupper()/tolower() on some systems can't handle others.
60- * Note: for UTF-8 use utf_toupper() and utf_tolower().
61+ * Note: It is often better to use MB_TOLOWER() and MB_TOUPPER(), because many
62+ * toupper() and tolower() implementations only work for ASCII.
6163 */
6264 #ifdef MSWIN
6365 # define TOUPPER_LOC(c) toupper_tab[(c) & 255]
diff -r 9947133ce85b -r 79a23c19108a src/version.c
--- a/src/version.c Wed Aug 15 18:08:50 2007 +0000
+++ b/src/version.c Wed Aug 15 18:41:34 2007 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 79,
671+/**/
670672 78,
671673 /**/
672674 77,
Show on old repository browser