[PATCH] windres (ungarbled): (5) set default LANGUAGE to english/US instead of 0,0

Gunnar Degnbol gunnar@danbbs.dk
Tue Mar 19 15:25:00 GMT 2002


If there is no explicit LANGUAGE definition LANGUAGE is set 
to 0,0. rc.exe sets it to LANG_ENGLISH, SUBLANG_ENGLISH_US. 

ChangeLog:

2002-03-19 Gunnar Degnbol <degnbol@danbbs.dk>

	* windres.c: Set default LANGUAGE to english/us

deflang.rc:

101 DIALOG DISCARDABLE  0, 0, 186, 95
BEGIN
    DEFPUSHBUTTON "OK",1,129,7,50,14
END

Before patch:

$ /bin/windres.exe -i deflang.rc 
LANGUAGE 0, 0

101 DIALOG MOVEABLE DISCARDABLE 0, 0, 186, 95
STYLE 0x80880000
BEGIN
  DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14, 0x50010001
END

After patch:

$ windres.exe -i deflang.rc 
LANGUAGE 9, 4

101 DIALOG MOVEABLE DISCARDABLE 0, 0, 186, 95
STYLE 0x80880000
BEGIN
  DEFPUSHBUTTON "OK", 1, 129, 7, 50, 14, 0x50010001
END

deflang.patch:
--- binutils/windres.c	Sun Mar 17 14:48:02 2002
+++ binutils.new/windres.c	Sun Mar 17 14:48:16 2002
@@ -809,7 +809,7 @@
   target = NULL;
   preprocessor = NULL;
   preprocargs = NULL;
-  language = -1;
+  language = 0x409; /* LANG_ENGLISH, SUBLANG_ENGLISH_US */
   use_temp_file = 0;
 
   while ((c = getopt_long (argc, argv, "i:o:I:O:F:D:hHvV", long_options,



More information about the Binutils mailing list