Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv32444/src/modules
Modified Files:
BareBonesEditor.cpp
Log Message:
don't send iso8859-1 text as utf-8
Index: BareBonesEditor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/BareBonesEditor.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -b -u -2 -r1.24 -r1.25
--- BareBonesEditor.cpp 12 Oct 2003 11:29:01 -0000 1.24
+++ BareBonesEditor.cpp 12 Oct 2003 12:31:50 -0000 1.25
@@ -285,6 +285,6 @@
#if wxUSE_WCHAR_T && defined(OS_WIN)
-// this very simple minded function tries to determine the encoding we shoudl
-// use from the given Unicode character code
+// this very simple minded function tries to determine the encoding we should
+// use from the given Unicode character code (http://www.unicode.org/charts/)
static wxFontEncoding GetEncoding(wchar_t wch)
{
@@ -292,4 +292,8 @@
if ( wch < 0x7f )
return wxFONTENCODING_SYSTEM;
+
+ // latin-1 supplement
+ if ( wch < 0x100 )
+ return wxFONTENCODING_CP1252;
// greek
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates