diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-11 22:44:23 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-11 22:44:23 +0000 |
| commit | 039fed0ef5390d5f8015f89b413ed6eb42c79033 (patch) | |
| tree | 269a9340a1ef490e80d3453781077943448d5c61 /enc/trans | |
| parent | 39e152189f0abbf1d799e623d08ba08c442be820 (diff) | |
| download | ruby-039fed0ef5390d5f8015f89b413ed6eb42c79033.tar.gz ruby-039fed0ef5390d5f8015f89b413ed6eb42c79033.tar.xz ruby-039fed0ef5390d5f8015f89b413ed6eb42c79033.zip | |
* transcode_data.h (rb_transcoder): add resetstate_func field for
resetting a state of stateful encoding.
* enc/trans/iso2022.trans (rb_EUC_JP_to_ISO_2022_JP): specify
finish_eucjp_to_iso2022jp for resetstate_func.
* tool/transcode-tblgen.rb: specify NULL for resetstate_func.
* transcode.c (output_replacement_character): call resetstate_func
before appending the replacement character.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans')
| -rw-r--r-- | enc/trans/iso2022.trans | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/enc/trans/iso2022.trans b/enc/trans/iso2022.trans index 3209fad16..1d015eea5 100644 --- a/enc/trans/iso2022.trans +++ b/enc/trans/iso2022.trans @@ -136,7 +136,8 @@ rb_EUC_JP_to_ISO_2022_JP = { 1, /* input_unit_length */ 3, /* max_input */ 5, /* max_output */ - NULL, NULL, NULL, fun_so_eucjp_to_iso2022jp, finish_eucjp_to_iso2022jp + NULL, NULL, NULL, fun_so_eucjp_to_iso2022jp, + finish_eucjp_to_iso2022jp, finish_eucjp_to_iso2022jp }; void |
