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: (5) set default LANGUAGE to english/US instead of0,0


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,



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