[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Resource changes in Tortoise.pot

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 08 Dec 2009 18:46:40 +0100

On 08.12.2009 12:21, Lübbe Onken wrote:
> Stefan wrote,
>
> because I wrote:
>>> /flame mode on
>>> Delphi doesn't require this junk :)
>>> /flame mode off
>
> Yay, flame war!!!
>
>> Sure - if you don't know about UNICODE, you don't have to worry about
>> such things :)
>> (Delphi has UNICODE support only since this year, and I guess you're
>> not using the latest version yet).
>
> I'm using Delphi 7 with Unicode for several (six?) years now. OK, the
> GUI controls are a Unicode enabled package derived from the standard
> controls. But I can ensure you that I don't have to distinguish the
> unicodeness of parameters that I pass to a (Wide)format function.
>
> Format("%s", [ansistring]) -> fine
> Format("%s", [widestring]) -> junk
> WideFormat("%s", [ansistring]) -> fine
> WideFormat("%s", [widestring]) -> fine
>
> Look mum, no capital "%s" :)

Look mum, garbage when using "Format" with a wide string :)

btw: I could easily write a format function that wouldn't need those
capital S specifiers. But then it wouldn't be compatible with C anymore,
only with C++. So now you know why we have the capital S in those
functions :)

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2428270
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-08 18:46:51 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.