public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Gunnar Degnbol <gunnar@danbbs.dk>
To: binutils@sources.redhat.com
Subject: [PATCH] windres (ungarbled): (10) The digits A-F are interpreted as 0-5  (Bernd Herd)
Date: Tue, 19 Mar 2002 15:31:00 -0000	[thread overview]
Message-ID: <3C97CA69.79979C22@danbbs.dk> (raw)

This was posted by Bernd Herd in february as part of a large 
patch bundling several fixes: 
http://sources.redhat.com/ml/binutils/2002-02/msg00021.html

ChangeLog:

2002-03-19 Bernd Herd <info@herdsoft.com>

	* rclex.l: "\xhex" encoding in strings corrected

escapex.rc:

101 DIALOG DISCARDABLE  0, 0, 186, 95
BEGIN
    LTEXT "\xB0",-1,23,46,28,8
END

Before patch:

$ /bin/windres -i escapex.rc
LANGUAGE 0, 0

101 DIALOG MOVEABLE DISCARDABLE 0, 0, 186, 95
STYLE 0x80880000
BEGIN
  LTEXT "\020", 65535, 23, 46, 28, 8, 0x50020000
END

After patch:

$ /usr/local/bin/windres -i escapex.rc
LANGUAGE 9, 1

101 DIALOG MOVEABLE DISCARDABLE 0, 0, 186, 95
STYLE 0x80880000
BEGIN
  LTEXT "\260", 65535, 23, 46, 28, 8, 0x50020000
END

escapex.patch
--- binutils/rclex.l	Sun Mar 17 14:53:32 2002
+++ binutils.new/rclex.l	Sun Mar 17 14:53:37 2002
@@ -394,9 +394,9 @@
 		  if (*t >= '0' && *t <= '9')
 		    ch = (ch << 4) | (*t - '0');
 		  else if (*t >= 'a' && *t <= 'f')
-		    ch = (ch << 4) | (*t - 'a');
+		    ch = (ch << 4) | (*t - 'a' + 10);
 		  else if (*t >= 'A' && *t <= 'F')
-		    ch = (ch << 4) | (*t - 'A');
+		    ch = (ch << 4) | (*t - 'A' + 10);
 		  else
 		    break;
 		  ++t;

             reply	other threads:[~2002-03-19 23:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19 15:31 Gunnar Degnbol [this message]
2002-04-09  8:38 ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C97CA69.79979C22@danbbs.dk \
    --to=gunnar@danbbs.dk \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).