aboutsummaryrefslogtreecommitdiff
path: root/dw/findtext.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-10-22 18:38:25 +0000
committercorvid <corvid@lavabit.com>2011-10-22 18:38:25 +0000
commit1f0c79090620e09aa281ff9ee14f816efb7d6f4f (patch)
tree8a05479dd0cd6009c943e00814eda643bad33e9a /dw/findtext.cc
parentbb81112acaf4a098192f9fe6e27491e1bd503eb6 (diff)
reset LC_CTYPE to C (for the benefit of Turkic locales)
The standard solution to I and i being different letters in Turkic locales is to make your own ASCIIfied strcasecmp/toupper/tolower, but I'm not aware of us currently having any need/use for non-C LC_CTYPE.
Diffstat (limited to 'dw/findtext.cc')
-rw-r--r--dw/findtext.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/dw/findtext.cc b/dw/findtext.cc
index 9793db91..e7cd3597 100644
--- a/dw/findtext.cc
+++ b/dw/findtext.cc
@@ -216,6 +216,10 @@ bool FindtextState::unhighlight ()
return false;
}
+/** \todo If this is made UTF8-aware one day, we might want to
+ * setlocale(LC_CTYPE, "") for the duration of the search. See the comment in
+ * main() for why we normally keep it set to "C".
+ */
bool FindtextState::search0 (bool backwards, bool firstTrial)
{
if (iterator->getChar () == CharIterator::END)