Qt-interest Archive, August 2007
escape_expand() is broken?
Message 1 in thread
Hey Guys,
Anyone else having problems with escape_expand? Doing this:
message($$escape_expand("Hello \n\t world!"))
gives me this:
Project MESSAGE: Hello
worrrl
The newline, "\n", and tab, "\t", are properly formatted for any variation I
tried, but the output gets corrupted. Haven't found anything on this, could
someone please confirm.
Thanks,
Pete
--
[ signature omitted ]
Message 2 in thread
On 8/17/07, Pete Black <theblackpeter@xxxxxxxxx> wrote:
> Hey Guys,
>
> Anyone else having problems with escape_expand? Doing this:
>
> message($$escape_expand("Hello \n\t world!"))
>
> gives me this:
>
> Project MESSAGE: Hello
> worrrl
>
> The newline, "\n", and tab, "\t", are properly formatted for any variation I
> tried, but the output gets corrupted. Haven't found anything on this, could
> someone please confirm.
>
> Thanks,
> Pete
>
No one else has run in to this? Could a kind soul please help me check?
Put this line in a qmake project file;
message($$escape_expand("Hello \n\t world!"))
and run
qmake-qt4 myproject.pro
and check the output.
I'm running qt 4.3.1 on ubuntu. qmake-qt4 -v says:
QMake version 2.01a
Using Qt version 4.3.1
Thanks,
Pete
--
[ signature omitted ]
Message 3 in thread
On Tuesday 21 of August 2007 12:47:36 Pete Black wrote:
> On 8/17/07, Pete Black <theblackpeter@xxxxxxxxx> wrote:
> > Hey Guys,
> >
> > Anyone else having problems with escape_expand? Doing this:
> >
> > message($$escape_expand("Hello \n\t world!"))
> >
> > gives me this:
> >
> > Project MESSAGE: Hello
> > worrrl
> >
> > The newline, "\n", and tab, "\t", are properly formatted for any
> > variation I tried, but the output gets corrupted. Haven't found anything
> > on this, could someone please confirm.
> >
> > Thanks,
> > Pete
>
> No one else has run in to this? Could a kind soul please help me check?
>
> Put this line in a qmake project file;
>
> message($$escape_expand("Hello \n\t world!"))
I can confirm this on PLD Linux Box with qt-4.3.0.
Regards,
RafaÅ Cygnarowski
rafi@xxxxxxx
--
[ signature omitted ]
Message 4 in thread
in qt 4.3.1 sources, have a look into qmake/project.cpp:
case E_ESCAPE_EXPAND: {
[...]
memcpy(i_data+x+1, i_data+x+2, i_len-x);
[...]
They are using a memcpy here instead of memmove (which is needed because
of the overlapping memory areas).
Cheers,
Peter
P.S. i leave it to you to report this to qt-bugs@xxxxxxxxxxxxx
--
[ signature omitted ]
Message 5 in thread
On 8/21/07, Peter Prade <prade@xxxxxxxxxxx> wrote:
> in qt 4.3.1 sources, have a look into qmake/project.cpp:
>
> case E_ESCAPE_EXPAND: {
> [...]
> memcpy(i_data+x+1, i_data+x+2, i_len-x);
> [...]
>
> They are using a memcpy here instead of memmove (which is needed because
> of the overlapping memory areas).
>
> Cheers,
> Peter
>
> P.S. i leave it to you to report this to qt-bugs@xxxxxxxxxxxxx
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
Thanks guys, I'm filing the bug now.
Pete
--
[ signature omitted ]