|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Building & using U++ without TheIDE
Re: Building & using U++ without TheIDE [message #11604 is a reply to message #11360] |
Wed, 19 September 2007 00:43 |
sergei
Messages: 94 Registered: September 2007
|
Member |
|
|
Update:
I'm done implementing unicode. I don't exactly like the way I did it, but it works. I prefer some global strings manager like the TSTR I suggested, but since Mirek said he doesn't want TCHARs I've updated all API calls manually. I added PLATFORM_UNICODE define, and replaced many #ifdef PLATFORM_WINCE with it. Conversion mostly implemented through ToSystemCharset and FromSystemCharset.
In the process I've also found and eliminated a "security vulnerability" (that's what memory bugs are called nowadays ) in Log.h:
sprintf(h, "* %s %02d.%02d.%04d %02d:%02d:%02d, user: %s\n",
(const char*)FromSystemCharset(exe),
t.day, t.month, t.year, t.hour, t.minute, t.second, (const char*)FromSystemCharset(user));
I added the (const char*), otherwise I got segmentation fault in debug. Probably without the explicit cast sprintf thought that String is a char array.
I received another segmentation fault earlier (but maybe it was this one...), and that one was solved by replacing all To/FromSysChrSet with To/FromSystemCharset. Not a big deal IMHO, they were all used in Win32-specific code anyway...
I've tested unicode filenames - it did open a multilingually-named file and read its content successfully. I've also tested registry - successfully wrote that filename to a REG_SZ key, it's fine. Didn't try to create unicode-named keys (don't wanna kill my windows).
Next (final) step - zlib/lay/iml/images testing. If that goes well, I'll upload everything.
P.S. I'm working from Code::Blocks when editing U++ source, rebuild for console project is half a minute. So I don't want a static lib for debug Though GDB / Code completion don't work that well - GDB reports most stuff in U++ source as incomplete type (so I have to Cout whatever I want to see), and Code completion usually can't find definition of things (but it does know function prototypes).
P.S.2 since you know about the MSVC bug, did anyone report to MS? There might be a chance that they fix it...
Edit: I think UTFBOM class I posted above, or something else implementing that functionality, should be added to some place in U++. That way unicode support will be complete - unicode filenames + unicode text.
[Updated on: Wed, 19 September 2007 01:07] Report message to a moderator
|
|
|
|
|
Building & using U++ without TheIDE
By: sergei on Sun, 09 September 2007 22:03
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 09 September 2007 23:47
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 01:48
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:16
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:30
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 12:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 13:56
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 15:53
|
|
|
Re: Building & using U++ without TheIDE
By: Ulti on Mon, 10 September 2007 16:56
|
|
|
Re: Building & using U++ without TheIDE
By: Zardos on Mon, 10 September 2007 17:17
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 17:57
|
|
|
Re: Building & using U++ without TheIDE
By: Zardos on Tue, 11 September 2007 09:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 17:57
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:09
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:12
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:15
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 20:59
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 21:31
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 22:35
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:16
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 11 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:21
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 02:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 09:20
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:20
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 18:47
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 20:04
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 22:01
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 12:31
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 14:25
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 15:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 17:34
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 18:00
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:31
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 01:19
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 05:45
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 15:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 23:58
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 14 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 20:11
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 21:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:00
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 22:16
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:48
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 16 September 2007 01:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:55
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:58
|
|
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 07:53
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 10:10
|
|
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 10:53
|
|
|
Re: Building & using U++ without TheIDE
By: tvanriper on Tue, 18 September 2007 02:35
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 18:57
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:06
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 11:07
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 11:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 13:50
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 15:46
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 18:33
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:20
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:28
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 23:47
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 00:08
|
|
|
Re: Building & using U++ without TheIDE
By: unodgs on Tue, 18 September 2007 08:30
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 00:32
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 03:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 18:05
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 19:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 00:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 09:34
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 10:12
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 10:45
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:18
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:33
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:39
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 12:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 12:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 14:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 23:06
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 23:56
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 05:39
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 13:29
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 14:51
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 15:11
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 21:57
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 03:36
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Fri, 21 September 2007 09:49
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 13:41
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 22 September 2007 00:16
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 22 September 2007 00:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 23 September 2007 10:54
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 16:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 20:51
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 11:44
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 25 September 2007 16:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 23:07
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 00:52
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 13:41
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 15:13
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 18:25
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 18:44
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 19:26
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 21:01
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 22:56
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 09 October 2007 19:14
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 09 October 2007 23:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 10 October 2007 00:02
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 10 October 2007 00:51
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 11 October 2007 05:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 00:35
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 07:27
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 10:48
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 12:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 19:12
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 17 October 2007 21:58
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 22:54
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 01:34
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 18 October 2007 14:44
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 17:49
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 21 October 2007 02:54
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 21 October 2007 22:26
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 22 October 2007 01:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 27 October 2007 19:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 28 October 2007 02:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 29 October 2007 00:38
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 01 November 2007 12:30
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 04 November 2007 12:34
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 09:06
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 11:10
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 06 November 2007 14:07
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 06 November 2007 21:19
|
Goto Forum:
Current Time: Tue May 14 21:40:49 CEST 2024
Total time taken to generate the page: 0.04009 seconds
|
|
|