From 1f0c79090620e09aa281ff9ee14f816efb7d6f4f Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 22 Oct 2011 18:38:25 +0000 Subject: 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. --- dw/findtext.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dw/findtext.cc') 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) -- cgit v1.2.3