This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] windres (ungarbled): (9) encode "\a" as "\b" (Bernd Herd)


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: "\a" escape (used for right justified 
	key definitions in menus) is encodes as binary 8

escapea.rc:

20 MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Open\a^O",                   17
    END
END

Before patch:

$ rc escapea.rc 

$ /usr/local/bin/windres -i escapea.res
LANGUAGE 9, 1

20 MENU MOVEABLE PURE DISCARDABLE
BEGIN
  POPUP "&File"
  BEGIN
    MENUITEM "&Open\b^O", 17
  END
END

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

20 MENU MOVEABLE DISCARDABLE
BEGIN
  POPUP "&File"
  BEGIN
    MENUITEM "&Open\a^O", 17
  END
END

After patch:

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

20 MENU MOVEABLE DISCARDABLE
BEGIN
  POPUP "&File"
  BEGIN
    MENUITEM "&Open\b^O", 17
  END
END

escapea.patch:
--- binutils/rclex.l	Sun Mar 17 14:52:46 2002
+++ binutils.new/rclex.l	Sun Mar 17 14:52:59 2002
@@ -331,7 +331,7 @@
 	      break;
 
 	    case 'a':
-	      *s++ = ESCAPE_A;
+	      *s++ = ESCAPE_B; /* Strange, but true... */
 	      ++t;
 	      break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]