summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-08-15 18:41:34 +0000
committerBram Moolenaar <Bram@vim.org>2007-08-15 18:41:34 +0000
commitdeefb63bfbf7bba981e82853638f9ab98d947d80 (patch)
treee1d3584f63a340e9a0a57a16d595ee03518adbaf /src/macros.h
parent70c2a63474bc0bc167e2e2cfb0f984a91f893f0d (diff)
downloadvim-git-deefb63bfbf7bba981e82853638f9ab98d947d80.tar.gz
updated for version 7.1-079v7.1.079
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/macros.h b/src/macros.h
index 400f77128..f22309959 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -54,10 +54,12 @@
/*
* toupper() and tolower() that use the current locale.
- * On some systems toupper()/tolower() only work on lower/uppercase characters
+ * On some systems toupper()/tolower() only work on lower/uppercase
+ * characters, first use islower() or isupper() then.
* Careful: Only call TOUPPER_LOC() and TOLOWER_LOC() with a character in the
* range 0 - 255. toupper()/tolower() on some systems can't handle others.
- * Note: for UTF-8 use utf_toupper() and utf_tolower().
+ * Note: It is often better to use MB_TOLOWER() and MB_TOUPPER(), because many
+ * toupper() and tolower() implementations only work for ASCII.
*/
#ifdef MSWIN
# define TOUPPER_LOC(c) toupper_tab[(c) & 255]