[sword-cvs] sword/src/mgr localemgr.cpp,1.23,1.24
sword at www.crosswire.org
sword at www.crosswire.org
Thu Jul 22 11:47:46 MST 2004
- Previous message: [sword-cvs] sword/locales.d it-utf8.conf, NONE, 1.1 abbr.conf, 1.8,
1.9 en_GB.conf, 1.4, 1.5 id.conf, 1.9, 1.10 it.conf, 1.6,
1.7 la.conf, 1.4, 1.5 nl.conf, 1.6, 1.7 pt_BR-utf8.conf, 1.2,
1.3 pt_BR.conf, 1.4, 1.5 ro.conf, 1.8, 1.9 sl.conf, 1.3, 1.4
- Next message: [sword-cvs] sword/src/modules/filters osishtmlhref.cpp,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: joachim
Update of /cvs/core/sword/src/mgr
In directory www:/tmp/cvs-serv9557/src/mgr
Modified Files:
localemgr.cpp
Log Message:
localemgr fix
Index: localemgr.cpp
===================================================================
RCS file: /cvs/core/sword/src/mgr/localemgr.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- localemgr.cpp 29 May 2004 01:12:42 -0000 1.23
+++ localemgr.cpp 22 Jul 2004 18:47:44 -0000 1.24
@@ -146,10 +146,10 @@
if (locale->getName()) {
bool supported = false;
if (StringMgr::hasUTF8Support()) {
- supported = (locale->getEncoding() && (!strcmp(locale->getEncoding(), "UTF-8") /*|| !strcmp(locale->getEncoding(), "ISO8859-1")*/) );
+ supported = (locale->getEncoding() && (!strcmp(locale->getEncoding(), "UTF-8") || !strcmp(locale->getEncoding(), "ASCII")) );
}
else {
- supported = !locale->getEncoding() || (locale->getEncoding() && strcmp(locale->getEncoding(), "UTF-8"));
+ supported = !locale->getEncoding() || (locale->getEncoding() && (strcmp(locale->getEncoding(), "UTF-8") != 0)); //exclude UTF-8 locales
}
if (!supported) { //not supported
- Previous message: [sword-cvs] sword/locales.d it-utf8.conf, NONE, 1.1 abbr.conf, 1.8,
1.9 en_GB.conf, 1.4, 1.5 id.conf, 1.9, 1.10 it.conf, 1.6,
1.7 la.conf, 1.4, 1.5 nl.conf, 1.6, 1.7 pt_BR-utf8.conf, 1.2,
1.3 pt_BR.conf, 1.4, 1.5 ro.conf, 1.8, 1.9 sl.conf, 1.3, 1.4
- Next message: [sword-cvs] sword/src/modules/filters osishtmlhref.cpp,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the sword-cvs
mailing list