diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-20 11:37:26 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-20 11:37:26 +0000 |
commit | c38487d06322cbe5eb5ee008e681fee6ec7363b4 (patch) | |
tree | 70df3bdbe1900e289c243019dd06dd8bcb069cca /io.c | |
parent | 5a392c71dbf5cdc5af261acd3c56eac39e217988 (diff) | |
download | ruby-c38487d06322cbe5eb5ee008e681fee6ec7363b4.tar.gz |
* io.c (rb_f_open): add rdoc about specifying ext_enc as *-bom.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5467,6 +5467,9 @@ check_pipe_command(VALUE filename_or_command) * read string will be tagged by the encoding in reading, * and output string will be converted * to the specified encoding in writing. + * If ext_enc ends with '-bom', check whether the input has a BOM. If + * there is a BOM, strip it and set external encoding as + * what the BOM tells. If there is no BOM, use ext_enc without '-bom'. * If two encoding names, * ext_enc and int_enc (external encoding and internal encoding), * are specified, the read string is converted from ext_enc |