diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-21 05:32:12 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-21 05:32:12 +0000 |
| commit | ae3327d1d42aa812385c852f25b74f30e9a94fa3 (patch) | |
| tree | ff4bdbbf1379168b438cb94b48b6f0c1425ae0eb /transcode.c | |
| parent | ae6eeb20ef7656eabca44c1096ed7f1764a73880 (diff) | |
| download | ruby-ae3327d1d42aa812385c852f25b74f30e9a94fa3.tar.gz ruby-ae3327d1d42aa812385c852f25b74f30e9a94fa3.tar.xz ruby-ae3327d1d42aa812385c852f25b74f30e9a94fa3.zip | |
* transcode.c (str_transcode): initialize transcoder in
rb_transcoding. [ruby-dev:33234]
* transcode_data.h (rb_transcoding): transcoder constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
| -rw-r--r-- | transcode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/transcode.c b/transcode.c index e36e6c146..370bd06c3 100644 --- a/transcode.c +++ b/transcode.c @@ -311,6 +311,8 @@ str_transcode(int argc, VALUE *argv, VALUE *self) return -1; } + my_transcoding.transcoder = my_transcoder; + while (!final_encoding) { /* loop for multistep transcoding */ /* later, maybe use smaller intermediate strings for very long strings */ if (!(my_transcoder = transcode_dispatch(from_e, to_e))) { |
