Re: [fpc-pascal] UnicodeString and surrogate pairs

2016-04-29 Thread Sven Barth
Am 30.04.2016 08:24 schrieb "Michael Schnell" : > > On 04/29/2016 11:09 AM, Graeme Geldenhuys wrote: >> >> >> No, because UTF-8 doesn't use surrogate pairs. > > Really ? > > I understand that "surrogate pairs" is combining a printable character (i.e on of the nearly 2^32 UTF thingies) with another

Re: [fpc-pascal] UnicodeString and surrogate pairs

2016-04-29 Thread Michael Schnell
On 04/29/2016 11:09 AM, Graeme Geldenhuys wrote: No, because UTF-8 doesn't use surrogate pairs. Really ? I understand that "surrogate pairs" is combining a printable character (i.e on of the nearly 2^32 UTF thingies) with another of those to be combined to a different printable thingy (/e.g.

Re: [fpc-pascal] Debug and Release RTL & FCL side by side

2016-04-29 Thread Graeme Geldenhuys
On Fri, 29 Apr 2016 11:34:27 +0200 (CEST) Michael Van Canneyt wrote: > and then compile your program using -dDEBUGRTL, with in your .fpc.cfg Ah perfect, that's exactly the information I was looking for. I was just looking at the .fpc.cfg file and wondering if I could play with the RELEASE and DE

Re: [fpc-pascal] Debug and Release RTL & FCL side by side

2016-04-29 Thread Michael Van Canneyt
On Fri, 29 Apr 2016, Graeme Geldenhuys wrote: Hi, I sometimes hit a bug in my applications, but then there is no Stack Trace information, or simply something like 3 entries that don't give much information. See attached screenshot as an example. Apparently this is caused by the fact that I'm

Re: [fpc-pascal] Debug and Release RTL & FCL side by side

2016-04-29 Thread Tomas Hajny
On Fri, April 29, 2016 11:20, Graeme Geldenhuys wrote: Hi, > I sometimes hit a bug in my applications, but then there is no Stack > Trace information, or simply something like 3 entries that don't give > much information. See attached screenshot as an example. Apparently this > is caused by the

[fpc-pascal] Debug and Release RTL & FCL side by side

2016-04-29 Thread Graeme Geldenhuys
Hi, I sometimes hit a bug in my applications, but then there is no Stack Trace information, or simply something like 3 entries that don't give much information. See attached screenshot as an example. Apparently this is caused by the fact that I'm using a Release build of the RTL and FCL and the er

Re: [fpc-pascal] UnicodeString and surrogate pairs

2016-04-29 Thread Graeme Geldenhuys
On 2016-04-28 09:05, Michael Schnell wrote: > Would that necessarily be an UTF-8 issue ? No, because UTF-8 doesn't use surrogate pairs. In this instance the string is of type UnicodeString, thus UTF-16 encoded. Now I could internally assign that to a UTF8String type, but in this case I wanted to