1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
naruse 634cfdc6e6 Set encoding and strip bom when modeenc string is "r:foo-bom" [ruby-dev:37236]
* include/ruby/io.h (FMODE_STRIP_BOM): new constant.

* io.c (io_encname_bom_p): judge whether the encoding name
  is *-bom or not.
  (parse_mode_enc): drop "-bom".
  (rb_io_modestr_fmode): set FMODE_STRIP_BOM if needed.
  (rb_io_extract_modeenc): ditto.
  (io_strip_bom): strip bom if exists.
  (io_set_encoding_by_bom): set encoding if there is bom.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-09 14:47:48 +00:00
..
backward * include/ruby/backward/rubysig.h (rb_thread_blocking_region_begin), 2009-02-08 13:44:21 +00:00
defines.h * configure.in (--with-arch): added new option to support 2009-02-07 09:02:50 +00:00
encoding.h * encoding.c (rb_enc_fast_mbclen): faster mbclen for strings known 2009-05-20 04:44:36 +00:00
intern.h * include/ruby/intern.h (rb_time_num_new): declared. 2009-07-01 12:11:53 +00:00
io.h Set encoding and strip bom when modeenc string is "r:foo-bom" [ruby-dev:37236] 2009-07-09 14:47:48 +00:00
missing.h * include/ruby/missing.h, sprintf.c: get rid of a warning of VC++. 2009-01-02 14:35:07 +00:00
oniguruma.h * include/ruby/oniguruma.h, include/ruby/re.h, re.c, regcomp.c, 2009-06-30 02:08:54 +00:00
re.h * include/ruby/oniguruma.h, include/ruby/re.h, re.c, regcomp.c, 2009-06-30 02:08:54 +00:00
regex.h * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
ruby.h * include/ruby/ruby.h: 2009-07-07 20:28:27 +00:00
st.h * st.c, include/ruby/st.h (st_memsize): added. This function returns 2009-06-16 22:03:12 +00:00
util.h * common.mk (bignum.o, numeric.o): depend on util.h. 2009-05-26 04:58:15 +00:00
version.h * include/ruby/version.h: extracted the extensions interface and 2009-05-13 06:23:20 +00:00
vm.h * include/ruby/vm.h: write a comment. 2008-10-21 20:59:23 +00:00
win32.h * include/ruby/win32.h (strcasecmp, strncasecmp): use _ prefixed 2009-03-10 10:58:49 +00:00