Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » Making support for code pages unlimited
Re: Making support for code pages unlimited [message #23184 is a reply to message #23171] Thu, 24 September 2009 10:35 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
I am sorry I did not have to look into crashing tables more, now I did.

The problem with these crashes was mostly artificial, there were additional check to debug problems in tables:

- check that none of characters in the table is <128 (problem in ARMSCII_8)

- check that there are no duplicates (CP1161).

After removing the check, everything seems to be OK now.

As for multibyte character sets....

There is sort of problem, because some of charset.h expect single character.

So I guess all we can do is some sort of hook into 'whole string' functions that gets extended/reimplemented in "MBCS" package.

Maybe something like:

void RegisterMBCS(byte charset,
                  WString (*tounicode)(const char *s, int len),
                  String (*fromunicode)(const wchar *s, int len));


or maybe rather

void RegisterMBCS(byte charset,
                  WString (*tounicode)(const char *s, int len, int charset),
                  String (*fromunicode)(const wchar *s, int len, int charset));


or even

void RegisterMBCS(byte charset, void *param,
                  WString (*tounicode)(const char *s, int len, void *param),
                  String (*fromunicode)(const wchar *s, int len, void *param));


Mirek

[Updated on: Thu, 24 September 2009 10:36]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: same LNG_ in lang.cpp
Next Topic: Updated romanian translation
Goto Forum:
  


Current Time: Wed May 15 12:42:58 CEST 2024

Total time taken to generate the page: 0.02165 seconds