Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv30917/src/gui

Modified Files:
        wxFolderView.cpp 
Log Message:
don't use isalpha() for non ASCII keys

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.607
retrieving revision 1.608
diff -b -u -2 -r1.607 -r1.608
--- wxFolderView.cpp    8 Sep 2002 20:11:19 -0000       1.607
+++ wxFolderView.cpp    11 Sep 2002 23:58:21 -0000      1.608
@@ -4081,9 +4081,9 @@
 
       default: // translatable key?
-         // be careful to use isalpha() here before doing toupper() below:
-         // for non alnum chars toupper() can return absolutely anything, in
-         // particular it used to map WXK_INSERT (324) to 'D' so that pressing
-         // Ins could actually delete a message...
-         if ( isalpha(key) )
+         // be careful to check that we have an ASCII key here before doing
+         // toupper() below: for non alnum chars toupper() can return
+         // absolutely anything, in particular it used to map WXK_INSERT (324)
+         // to 'D' so that pressing Ins could actually delete a message...
+         if ( key < 128 )
          {
             /** To allow translations:



-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to