[mapguide-internals] MapGuide RFC 18 - Localization
Haris Kurtagic
haris at sl-king.com
Wed Mar 7 14:54:06 EST 2007
I agree with Trian for FDO providers on RDBMS, setting local in c
library doesn't mean much.
Haris
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Traian
Stanev
Sent: 7. marec 2007 20:32
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
Doesn't that depend on who executes the code? If the provider is an
RDBMS running in another process, that could be using a different locale
setting from MapGuide itself. Another thing -- if FDO uses Unicode
everywhere like its API implies (MapGuide also), is there some sort of a
Unicode locale that covers all kinds of string lower/upper/sorting?
Traian
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Bruce
Dechant
Sent: Wednesday, March 07, 2007 2:27 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
Any provider that does sorting on attribute data or uses SQL UPPER/LOWER
functions. Without this change the above does not work as expected.
Thanks,
Bruce
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Traian
Stanev
Sent: March 7, 2007 12:14 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
Which providers in particular require this and in what way?
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Bruce
Dechant
Sent: Wednesday, March 07, 2007 2:04 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
It directly affects them and is part of the reason this RFC is being
done. :)
Bruce
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Traian
Stanev
Sent: March 7, 2007 12:03 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
How will that setting affect FDO providers loaded by the MapGuide
process?
Traian
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Bruce
Dechant
Sent: Wednesday, March 07, 2007 2:01 PM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
Steve,
Date/time/currency formatting will use the locale specified. Numbers
will continue to use the "C" locale internally as they have been.
Thanks,
Bruce
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Steve
Dang
Sent: March 7, 2007 11:58 AM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
Hi Bruce,
I assume this RFC includes some mechanism to switch from user locale to
C locale and vice versa, so that date/time/number/currency formatting
(e.g. MgUtil::StringToDouble, etc.) continues to work.
Thanks,
Steve.
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Bruce
Dechant
Sent: Wednesday, March 07, 2007 11:38 AM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
Thanks Trevor.
I'll update the RFC to reflect that the locale is platform specific and
does differ between Windows and Linux.
Bruce
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Trevor
Wekel
Sent: March 7, 2007 11:31 AM
To: MapGuide Internals Mail List
Subject: RE: [mapguide-internals] MapGuide RFC 18 - Localization
Hi Bruce,
We also have to be careful with locale on Linux. We may need to modify
the MG_WCHAR_TO_CHAR macro to switch from wchar_t* to localized text.
On Linux, we currently assume the codepage is unicode compliant and
convert to UTF-8 text. So we may need to use iconv to do the codepage
conversion on Linux. Also the locale string convention is a little
different on Linux.
http://linux.about.com/library/cmd/blcmdl3_setlocale.htm
Here's a few examples of Linux locale strings:
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
en_ZA
en_ZA.iso88591
Thanks,
Trevor
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Bruce
Dechant
Sent: Wednesday, March 07, 2007 11:08 AM
To: MapGuide Internals Mail List
Subject: [mapguide-internals] MapGuide RFC 18 - Localization
The draft RFC 18 specification is now ready for review:
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc18
Please post any comments to this mailing list.
Thanks,
Bruce Dechant
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list