summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index 44f79a735f..d9fd157446 100644
--- a/io.c
+++ b/io.c
@@ -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