public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] windres (ungarbled): (5) set default LANGUAGE to english/US  instead of 0,0
@ 2002-03-19 15:25 Gunnar Degnbol
  0 siblings, 0 replies; only message in thread
From: Gunnar Degnbol @ 2002-03-19 15:25 UTC (permalink / raw)
  To: binutils

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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-19 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19 15:25 [PATCH] windres (ungarbled): (5) set default LANGUAGE to english/US instead of 0,0 Gunnar Degnbol

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).