On Fri, Apr 08, 2005 at 03:13:07PM +0200,
Eric Hoch <[EMAIL PROTECTED]> wrote:
> The problem is that we need other languages then fr, de, jp to test
> the patch.
>
> If I understand Eric B right, it could be possible that this patch
> works for fr, de, jp but not for languages like czech, romanian,
> maybe it fails in chinese tradtional and modern (sorry don't know
> the correct term for it in the english language).
This can be tested with attached simple program with changing
"Region:" of "Formats" in "International" preference pane.
(Please compile the program on Mac OS X 10.3.x with gcc -o cflocale
cflocale.c -I/System/Library/Frameworks/CoreFoundation.framework/Headers
-framework CoreFoundation).
With the test program, it returns following result.
Czech -> cs_CZ
Romania -> ro_RO
Chinese -> zh_CN
Chinese (Taiwan) -> zh_TW
This seems to be valid locale name for me.
> So we need some more "exotic" languages to test this patch with and
> look if it does their encoding right. I think I can ask one arabian
> speaking person if he can test one OOo with this patch and see if
> arabian names are displayed correctly.
Maybe the test program can help for these languages.
Cheers,
--
Etsushi Kato
[EMAIL PROTECTED]
#include <stdio.h>
#include <CFString.h>
#include <CFLocale.h>
int main() {
char localename[256];
CFLocaleRef locale = CFLocaleCopyCurrent();
CFStringRef name = CFLocaleGetIdentifier(locale);
CFStringGetCString(name, localename, sizeof(localename),
kCFStringEncodingASCII);
CFRelease(locale);
printf("locale %s\n", localename);
return 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]