Powered by Invision Power Board

Welcome Guest ( Log In | Register )

Outline · Standard · [ Linear+ ]

> compiling eM+ in DCBS(far-east) boxes

roytam1
Feb 12 2005, 10:34
+Quote Post





Group: Translators
Posts: 199
Joined: 9-September 03
From: Hong Kong



in line 1336 of PPTooltip.cpp of today's CVS, there's a line:
CODE
                            else if ((strText[j] >= _T('0') && strText[j] <= _T('9')) || strText[j] >= _T('à') && strText[j] <= _T('ú'))


the [à'] and [ú'] are treated as one character and that line becomes to that:
CODE
                            else if ((strText[j] >= _T('0') && strText[j] <= _T('9')) || strText[j] >= _T('?) && strText[j] <= _T('?))


as a result, it can't be compiled.

so, please modifying this line to that in order to compile in far-east boxes:
CODE
                            else if ((strText[j] >= _T('0') && strText[j] <= _T('9')) || strText[j] >= _T('\xE0') && strText[j] <= _T('\xFA'))
User is offlineProfile CardPM
Go to the top of the page
Post #1
 
Reply to this topicStart new topicStart Poll
Replies(1 - 6)
Aw3
Feb 12 2005, 13:59
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



I think that your suggestion will be incorrect for Unicode...
User is offlineProfile CardPM
Go to the top of the page
Post #2
roytam1
Feb 12 2005, 14:57
+Quote Post





Group: Translators
Posts: 199
Joined: 9-September 03
From: Hong Kong



QUOTE(Aw3 @ Feb 12 2005, 21:59)
I think that your suggestion will be incorrect for Unicode...
*

But the VS.NET 2003 compiler is not unicode-compliant.
User is offlineProfile CardPM
Go to the top of the page
Post #3
Aw3
Feb 12 2005, 17:19
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



I don't know what are you talking about, but even Visual Studio 5.0 (about ten year old) creates Unicode applications without problems.
User is offlineProfile CardPM
Go to the top of the page
Post #4
roytam1
Feb 13 2005, 02:11
+Quote Post





Group: Translators
Posts: 199
Joined: 9-September 03
From: Hong Kong



QUOTE(Aw3 @ Feb 13 2005, 01:19)
I don't know what are you talking about, but even Visual Studio 5.0 (about ten year old) creates Unicode applications without problems.
*

You're right but if the source file is in ANSI form, the compiler will read it in ANSI form. So please let all eM+ source files be Unicode.
User is offlineProfile CardPM
Go to the top of the page
Post #5
Aw3
Feb 13 2005, 03:38
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



We are going to work to achieve it, but it will take some time as well as add a lot of problems.
User is offlineProfile CardPM
Go to the top of the page
Post #6
roytam1
Feb 14 2005, 00:01
+Quote Post





Group: Translators
Posts: 199
Joined: 9-September 03
From: Hong Kong



QUOTE(Aw3 @ Feb 13 2005, 11:38)
We are going to work to achieve it, but it will take some time as well as add a lot of problems.
*

Then you can save PPTooltip.cpp to Unicode first. I've tested it without problems.
User is offlineProfile CardPM
Go to the top of the page
Post #7

Reply to this topicTopic OptionsStart new topic
 

Lo-Fi Version Time is now: 18th May 2013 - 22:51