Offering enhancement to 'strings'
Ralf Brown
ralf.brown@gmail.com
Tue Jul 26 01:19:00 GMT 2011
More information about the Binutils mailing list
Tue Jul 26 01:19:00 GMT 2011
- Previous message (by thread): [patch] gas: factorize duplicate code in frags.c
- Next message (by thread): Offering enhancement to 'strings'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I've added support for UTF-8 and EUC encodings to the strings(1) code, and would like to contribute the changes back to the FSF. I'm willing to sign a copyright assignment. I saved multiple checkpoints during the update, so I can offer a series of incremental patches starting with the CVS version as of the morning of 2011-07-25: Patch 1: Simple refactoring to move the actual reading of bytes from get_char() into its own function get_byte(), as we will be using this code multiple times. Patch 2: Move the decision of whether a character is a desired graphical character into get_char() and adjust print_strings() accordingly. Patch 3: Enhance the character-handling code in print_strings() to deal with multi-byte characters. Patch 4: Add UTF-8 processing to get_char() and add new 'u' encoding type in main(). Patch 5: Add baseline EUC processing to get_char() and add new 'e' encoding type in main(). I look forward to hearing from you. Ralf Brown
- Previous message (by thread): [patch] gas: factorize duplicate code in frags.c
- Next message (by thread): Offering enhancement to 'strings'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list