[fpc-pascal] Re: Strings - suggestions

Michael Van Canneyt michael at freepascal.org
Sat Dec 22 18:07:14 CET 2012



On Sat, 22 Dec 2012, Reinier Olislagers wrote:

> On 22-12-2012 17:50, Michael Van Canneyt wrote:
>>
>>
>> On Sat, 22 Dec 2012, Reinier Olislagers wrote:
>>
>>> On 22-12-2012 12:55, Michael Van Canneyt wrote:
>>>> On Sat, 22 Dec 2012, dev.dliw-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
>>>> wrote:
>>>>
>>>>> Hi,
>>>>> concerning the string topic, for me (using fpc since 2.0.4 on a
>>>>> regular basis;
>>>>> TP experience ~ average user) there really should be an decision what
>>>>> way to
>>>>> go as early as possible.
>>>>
>>>> - We'll implement the capacity to have a code-page aware string type, as
>>>> Delphi has.
>>>>   (well, it is there already).
>>>>
>>>> - The {$H } directive will be extended so you can choose which string
>>>> type you need per unit.
>>>>   (ansi/wide/utf16/utf8...)
>>>>   This is different from Delphi, where you don't have this choice:
>>>> String=Widestring.
>>> So how would the patch in e.g.
>>> http://bugs.freepascal.org/view.php?id=22095
>>> fit in?
>>> That uses widestrings to support non-ASCII characters for ODBC and
>>> should be in the fcl-db.
>>> I suppose chosing any string type that is convenient in various fcl
>>> units could lead to a lot of useless conversions.
>>> How will this be avoided?
>>
>> That remains to be seen.
> Thanks, I've updated
> http://wiki.lazarus.freepascal.org/FPC_Unicode_support

Maybe a bit premature.

Tomorrow I may decide to change my mind, depending on how well I slept after watching "The hobbit" ;)

Michael.



More information about the fpc-pascal mailing list