[patch]: PR 577 & "#pragma code_page" support for windres

Kai Tietz Kai.Tietz@onevision.com
Wed Jun 6 10:47:00 GMT 2007


Hello,

I added the support of the --codepage (-c) option to windres tool. 
Additionally windres supports now the "code_page" pragma. It has the 
following syntax:
#pragma code_page( DEFAULT | <number>)

May somebody could add a good testcase for the codepage feature.

ChangeLog:

2007-06-06  Kai Tietz  <Kai.Tietz@onevision.com>
        * binutils/rclex.c: (cpp_line): Add code_page pragma
        support.
        * binutils/windres.c: (usage, long_options, main):
        Add new option --codepage & -c.
        * binutils/winduni.c: (wind_default_codepage,
        wind_current_codepage): New.
        (unicode_from_ascii, ascii_from_unicode): Use
        wind_current_codepage as codepage parameter.
        (unicode_print): Print 4 characters for hexadecimal
        values in unicode strings.
        * binutils/winduni.h:  (wind_default_codepage,
        wind_current_codepage): New.
        * binutils/doc/binutils.texi: Add new option.

Cheers,
 i.A. Kai Tietz



|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.

------------------------------------------------------------------------------------------
  OneVision Software Entwicklungs GmbH & Co. KG
  Dr.-Leo-Ritter-Straße 9 - 93049 Regensburg
  Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
  Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
  Handelsregister: HRA 6744, Amtsgericht Regensburg
  Komplementärin: OneVision Software Entwicklungs Verwaltungs GmbH
  Dr.-Leo-Ritter-Straße 9 – 93049 Regensburg
  Handelsregister: HRB 8932, Amtsgericht Regensburg - Geschäftsführer: 
Ulrike Döhler, Manuela Kluger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: optc_codepage.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20070606/19a978d8/attachment.txt>


More information about the Binutils mailing list