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 » Developing U++ » U++ Developers corner » .t / MSC / CJK - commited
.t / MSC / CJK - commited [message #23698] Sun, 15 November 2009 21:33 Go to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Well,

I have just tried to fix that long troublesome issue with MSC / CJK.

theide now convertes all c string literals when saving/loading .t files. All uppsrc .t files are now also converted.

Please check whether this solution fixes the problem!

Mirek
Re: .t / MSC / CJK - commited [message #23700 is a reply to message #23698] Mon, 16 November 2009 02:01 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
I tested it.But it has new problem.For *.iml file also have same trouble of .t file. Maybe that is a big trouble:
----- ide/Common ( GUI MSC8 WIN32 MSC ) (1 / 35)
ComDlg.cpp
F:\upp-svn\uppsrc\ide/Common/common.iml : warning C4819: The file contains a character that cannot be represe
	nted in the current code page (936). Save the file in Unicode format to prevent data loss
F:\upp-svn\uppsrc\ide/Common/common.iml(2) : error C2001: newline in constant
F:\upp-svn\uppsrc\ide/Common/common.iml(3) : error C2001: newline in constant
F:\upp-svn\uppsrc\ide/Common/common.iml(4) : error C2001: newline in constant
F:\upp-svn\uppsrc\ide/Common/common.iml(5) : error C2001: newline in constant
F:\upp-svn\uppsrc\ide/Common/common.iml(6) : error C2001: newline in constant

[Updated on: Mon, 16 November 2009 02:10]

Report message to a moderator

Re: .t / MSC / CJK - commited [message #23701 is a reply to message #23698] Mon, 16 November 2009 05:56 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
1700 is almost OK,but has a little problem.when first time compile,auth.cpp occur same error.:
F:\upp-svn\uppsrc\Web\auth.cpp : warning C4819: The file contains a character that cannot be represented in t
	he current code page (936). Save the file in Unicode format to prevent data loss
F:\upp-svn\uppsrc\Web\auth.cpp(207) : error C2001: newline in constant


for msc7.1 that problem is disappear at second time compile,but for MSC8 it can't disappear.

[Updated on: Mon, 16 November 2009 06:00]

Report message to a moderator

Re: .t / MSC / CJK - commited [message #23702 is a reply to message #23701] Mon, 16 November 2009 06:37 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Try now... (1701)
Re: .t / MSC / CJK - commited [message #23704 is a reply to message #23702] Mon, 16 November 2009 10:19 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
Oh,for 1701,it back to origianl Confused
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t : warning C4819: The file contains a character that cannot be represented
	 in the current code page (936). Save the file in Unicode format to prevent data loss
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(132) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(211) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(212) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(520) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(537) : error C2001: newline in constant
Re: .t / MSC / CJK - commited [message #23705 is a reply to message #23704] Mon, 16 November 2009 10:40 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
gxl117 wrote on Mon, 16 November 2009 04:19

Oh,for 1701,it back to origianl Confused
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t : warning C4819: The file contains a character that cannot be represented
	 in the current code page (936). Save the file in Unicode format to prevent data loss
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(132) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(211) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(212) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(520) : error C2001: newline in constant
F:\upp-svn\uppsrc\CtrlLib/CtrlLib.t(537) : error C2001: newline in constant



OK, minor glitch. 1702? Smile

Mirek
Re: .t / MSC / CJK - commited [message #23706 is a reply to message #23698] Mon, 16 November 2009 10:40 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
I manually convert .t file encode to UTF8,compile success.I will test 1072.

[Updated on: Mon, 16 November 2009 10:41]

Report message to a moderator

Re: .t / MSC / CJK - commited [message #23708 is a reply to message #23698] Mon, 16 November 2009 11:34 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
All .t file has encode problem.Or you can theide automatically convert encode for .t file.
Re: .t / MSC / CJK - commited [message #23709 is a reply to message #23708] Mon, 16 November 2009 13:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
gxl117 wrote on Mon, 16 November 2009 05:34

All .t file has encode problem.Or you can theide automatically convert encode for .t file.


All .t should be now encoded using octal escapes like

http://code.google.com/p/upp-mirror/source/browse/trunk/upps rc/CtrlLib/CtrlLib.t?spec=svn1702&r=1702

(theide converts all string literals when loading/saving - that is the point of the whole new thing...).
Re: .t / MSC / CJK - commited [message #23710 is a reply to message #23709] Mon, 16 November 2009 13:55 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
In addition to CtrlLib.t file, the other .t file also has encode problem.I convert them manually. But why not let theide automatically to conversion them at compile time?
Re: .t / MSC / CJK - commited [message #23712 is a reply to message #23710] Mon, 16 November 2009 17:15 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
gxl117 wrote on Mon, 16 November 2009 07:55

In addition to CtrlLib.t file, the other .t file also has encode problem.



What problem? You have to be more specific.

To me, everything looks ok. See the svn...

What kind of fixes have you done?

Quote:


But why not let theide automatically to conversion them at compile time?



Because it would make hard to use makefiles, among other problems. We do not want to introduce any kinds of preprocessors, right?

Mirek
Re: .t / MSC / CJK - commited [message #23758 is a reply to message #23712] Thu, 19 November 2009 20:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Anobody else willing to test this?
Re: .t / MSC / CJK - commited [message #23762 is a reply to message #23758] Fri, 20 November 2009 03:17 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
I'm sorry,the slow responses.
just a little problem.
C:\upp\uppsrc\Report/Report.t : warning C4819: The file contains a character that cannot be represented in th
	e current code page (936). Save the file in Unicode format to prevent data loss
C:\upp\uppsrc\Report/Report.t(43) : error C2001: newline in constant
C:\upp\uppsrc\Report/Report.t(76) : error C2001: newline in constant
C:\upp\uppsrc\Report/Report.t(43) : fatal error C1057: unexpected end of file in macro expansion
ReportDlg.cpp

So,you need to convert all *.t fileŁ¬not just CtrlLib.t .
Re: .t / MSC / CJK - commited [message #23769 is a reply to message #23762] Fri, 20 November 2009 13:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
gxl117 wrote on Thu, 19 November 2009 21:17

I'm sorry,the slow responses.
just a little problem.
C:\upp\uppsrc\Report/Report.t : warning C4819: The file contains a character that cannot be represented in th
	e current code page (936). Save the file in Unicode format to prevent data loss
C:\upp\uppsrc\Report/Report.t(43) : error C2001: newline in constant
C:\upp\uppsrc\Report/Report.t(76) : error C2001: newline in constant
C:\upp\uppsrc\Report/Report.t(43) : fatal error C1057: unexpected end of file in macro expansion
ReportDlg.cpp

So,you need to convert all *.t fileŁ¬not just CtrlLib.t .


Well, I thought I did. Aparently, I did not. Strange.

Can you try 1709 please?

Mirek
Re: .t / MSC / CJK - commited [message #23777 is a reply to message #23769] Fri, 20 November 2009 16:25 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
OK,I tested SVN 1713,all things normal.Celebrate! Very Happy Razz Razz
Thank you very much,luzr!!

[Updated on: Fri, 20 November 2009 16:26]

Report message to a moderator

Re: .t / MSC / CJK - commited [message #23779 is a reply to message #23777] Fri, 20 November 2009 22:06 Go to previous message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
gxl117 wrote on Fri, 20 November 2009 10:25

OK,I tested SVN 1713,all things normal.Celebrate! Very Happy Razz Razz
Thank you very much,luzr!!


Great. This was an ugly problem for years. Current solution is not ideal, but it is fine enough. Glad we can finally close the issue...
Previous Topic: Stuck with TrayIcon in Linux....
Next Topic: xlslib in U++!
Goto Forum:
  


Current Time: Fri Nov 01 01:30:46 CET 2024

Total time taken to generate the page: 0.01903 seconds