This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch/windres: Fix handling of hex-notation escape sequences in quoted strings
- From: Ian Lance Taylor <ian at airs dot com>
- To: Danny Smith <dannysmith at clear dot net dot nz>
- Cc: 'binutils' <binutils at sources dot redhat dot com>
- Date: 11 Oct 2005 16:12:17 -0700
- Subject: Re: Patch/windres: Fix handling of hex-notation escape sequences in quoted strings
- References: <000001c5ceb8$ab2d1550$554861cb@anykey>
Danny Smith <dannysmith@clear.net.nz> writes:
> MS rc interprets the string in this control,
>
> 101 DIALOG DISCARDABLE 0, 0, 186, 95
> BEGIN
> LTEXT "\x00ABC",-1,23,46,28,8
> END
>
> as "\x00" "ABC" so the string is effectively empty
>
>
> and the *wide* string in this control
>
> 102 DIALOG DISCARDABLE 0, 0, 186, 95
> BEGIN
> LTEXT L"\x00ABC",-1,23,46,28,8
> END
> as the concatenation of L"\x00AB" L"C" or «C
>
> windres says syntax error with L
Duh, sorry, I somehow managed to miss the 'L'.
The original patch is OK.
Ian