Skip to content
Commits on Feb 15, 2012
  1. @nurse

    Correct documentation of r34608.

    * correct explanation of ASCII-8BIT.
    
    * "Locale encoding" is the name of the encoding derived from
      Encoding.locale_encoding. Its correct name is "Script encoding".
    
    * Add Locale encoding and Filesystem encoding.
    
    * default external is set by locale encoding if -E is not given.
    
    * functional methods normally written as functional style on ruby's doc.
    
    * fix typo.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Feb 15, 2012
  2. @nurse

    Temporary fix not to use non ASCII.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Feb 15, 2012
Commits on Feb 14, 2012
  1. @drbrain

    * encoding.c (Init_Encoding): Add IO example of internal and external

      encoding.  Fixed a typo in the force_encoding example.  [#5949]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    drbrain committed Feb 14, 2012
  2. @drbrain

    * encoding.c (Init_Encoding): Add Encoding documentation.

      [ruby-trunk - Bug #5949]
    * encoding.c (rb_set_default_external):  Fix typo in documentation.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    drbrain committed Feb 14, 2012
Commits on Feb 5, 2012
  1. @nurse

    * encoding.c (rb_enc_compatible): return ASCII-8BIT even if 2nd string

      is ascii only string. [ruby-core:42354] [Bug #5968]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Feb 5, 2012
Commits on Jan 21, 2012
  1. @nurse

    * encoding.c (rb_enc_compatible): fix segv on symbols.

      [ruby-core:42204] [Bug #5921]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Jan 21, 2012
Commits on Nov 3, 2011
  1. @unak

    * encoding.c (rb_locale_charmap): ignore calling nl_langinfo_codeset()

      on Windows except cygwin. [experimental]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Nov 3, 2011
Commits on Sep 25, 2011
  1. @nobu

    * encoding.c (require_enc): reject only loading from untrusted

      load paths.  [ruby-dev:44541] [Bug #5279]
    * transcode.c (load_transcoder_entry): ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Sep 25, 2011
Commits on Sep 6, 2011
  1. @nobu

    * encoding.c (load_encoding): predefined encoding names are safe.

      [ruby-dev:44469] [Bug #5279]
    * transcode.c (load_transcoder_entry): ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Sep 6, 2011
Commits on Aug 2, 2011
  1. @nobu

    * encoding.c (enc_find): mistakenly remained !. [Bug #5150]

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 2, 2011
  2. @nurse

    Revert "* encoding.c (enc_find): simplified with RB_TYPE_P."

    This reverts commit r32817.
    It has less code on the surface, but it needs more condition.
    Moreover it doesn't need !.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 2, 2011
  3. @nobu

    * encoding.c (enc_find): simplified with RB_TYPE_P.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 2, 2011
  4. @nurse

    Fix r32811: add UNSPECIFIED_ENCODING case.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 2, 2011
  5. @nurse

    * encoding.c (str_to_encoding): rename from to_encoding and

      use str_to_encindex.
    
    * encoding.c (str_to_encindex): split from to_encoding.
    
    * encoding.c (rb_to_encoding): use str_to_encoding.
    
    * encoding.c (rb_obj_encoding): don't bypass rb_encoding*.
      If it uses rb_encoding*, it bypass encindex. If it uses encindex,
      it doesn't bypass.
    
    * encoding.c (enc_find): add shortcut for encoding object, use
      str_to_encindex, and avoid bypass rb_encoding*.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 2, 2011
Commits on Jul 7, 2011
  1. @nobu

    * encoding.c (rb_enc_set_index, rb_enc_associate_index): should

      check if frozen.
    * parse.y (rb_intern3), ruby.c (process_options, ruby_script):
      defer freezing after associating encodings.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Jul 7, 2011
Commits on Jun 17, 2011
  1. @akr

    * internal.h: declare internal functions here.

    * node.h: declare NODE dependent internal functions here.
    
    * iseq.h: declare rb_iseq_t dependent internal functions here.
    
    * vm_core.h: declare rb_thread_t dependent internal functions here.
    
    * bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c,
      enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c,
      iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y,
      proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c,
      thread.c, time.c, transcode.c, variable.c, vm.c,
      tool/compile_prelude.rb: don't declare internal functions declared
      in above headers.  include above headers if required.
    
      Note that rb_thread_mark() was declared as
      void rb_thread_mark(rb_thread_t *th) in cont.c but defined as
      void rb_thread_mark(void *ptr) in vm.c.  Now it is declared as
      the later in internal.h.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr committed Jun 17, 2011
Commits on Jun 10, 2011
  1. @nurse

    * encoding.c (rb_locale_charmap): When ruby process is run as Windows

      Service the console codepage is not set, GetConsoleCP returns 0.
      So on such environment, use GetACP().
      http://blogs.msdn.com/b/michkap/archive/2005/02/08/369197.aspx
      patched by Rafal Bigaj [ruby-core:36832] [Bug #4854]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Jun 10, 2011
  2. @drbrain

    * encoding.c: Mention that Encoding.compatible? can work with more

    	  than just Strings.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    drbrain committed Jun 10, 2011
Commits on May 19, 2011
  1. @nobu

    * lib: revert r31635-r31638 and untabify with expand(1).

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed May 19, 2011
Commits on May 18, 2011
  1. @drbrain

    * encoding.c: Improve documentation for Encoding#default_external and

    	  Encoding#default_internal.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    drbrain committed May 18, 2011
Commits on Apr 26, 2011
  1. @nobu

    * encoding.c (enc_find): accept Encoding objects.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Apr 26, 2011
Commits on Feb 15, 2011
  1. @nurse

    * encoding.c (rb_enc_compatible): change the rule for empty strings:

      remove the special treatment of the US-ASCII encoded empty string.
      Now Encoding.compatible? usually respect the encoding of the
      receiver.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Feb 15, 2011
Commits on Dec 11, 2010
  1. @akr

    * encoding.c: parenthesize macro arguments.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr committed Dec 11, 2010
Commits on Dec 2, 2010
  1. @nurse

    * encoding.c (enc_alias_internal): use st_insert2 and change return

      value to int.
    
    * encoding.c (enc_alias): follow enc_alias_internal.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Dec 2, 2010
  2. @nurse

    * encoding.c (enc_alias_internal): use xfree instead of free.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Dec 2, 2010
  3. @nurse

    * encoding.c (enc_alias_internal): free the copied key and

      return NULL when given key is already regisitered.
    
    * encoding.c (enc_alias): call set_encoding_const only when the
      alias is not registered yet.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Dec 2, 2010
Commits on Jul 21, 2010
  1. @nobu

    * configure.in (XCFLAGS): use -fvisibility=hidden if possible.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Jul 21, 2010
Commits on Jul 18, 2010
  1. @nobu

    * include/ruby/ruby.h (rb_data_type_t): restructured. [ruby-dev:41862]

      add parent member.
    
    * error.c (rb_typeddata_inherited_p): new function.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Jul 18, 2010
Commits on Jul 17, 2010
  1. @akr

    update doc.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr committed Jul 17, 2010
Commits on May 31, 2010
  1. @akr

    update comment.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr committed May 31, 2010
  2. @nurse

    * encoding.c (rb_enc_unicode_p): check the encoding is Unicode

      or not by the name; not function's pointer. [ruby-dev:41479]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed May 31, 2010
Commits on May 29, 2010
  1. @nurse

    * encoding.c (rb_filesystem_encindex): avoid infinite require

      loop. [ruby-core:30467]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed May 29, 2010
Commits on May 27, 2010
  1. @nurse

    * include/ruby/encoding.h (rb_filesystem_encindex): defined.

    * include/ruby/encoding.h (rb_locale_encindex): ditto.
    
    * encoding.c (rb_filesystem_encindex): remove static.
    
    * encoding.c (rb_locale_encindex): ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed May 27, 2010
Commits on May 17, 2010
  1. @marcandre

    * array.c: Documentation: change => in call-seq to ->.

                Harmonize "#=>" in examples. [ruby-core:30206]
    
    * bignum.c: ditto
    
    * class.c: ditto
    
    * compar.c: ditto
    
    * cont.c: ditto
    
    * dir.c: ditto
    
    * encoding.c: ditto
    
    * enum.c: ditto
    
    * enumerator.c: ditto
    
    * error.c: ditto
    
    * eval.c: ditto
    
    * file.c: ditto
    
    * gc.c: ditto
    
    * io.c: ditto
    
    * load.c: ditto
    
    * marshal.c: ditto
    
    * math.c: ditto
    
    * numeric.c: ditto
    
    * object.c: ditto
    
    * pack.c: ditto
    
    * proc.c: ditto
    
    * process.c: ditto
    
    * random.c: ditto
    
    * range.c: ditto
    
    * re.c: ditto
    
    * ruby.c: ditto
    
    * signal.c: ditto
    
    * sprintf.c: ditto
    
    * string.c: ditto
    
    * struct.c: ditto
    
    * thread.c: ditto
    
    * time.c: ditto
    
    * transcode.c: ditto
    
    * variable.c: ditto
    
    * vm_eval.c: ditto
    
    * vm_method.c: ditto
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    marcandre committed May 17, 2010
Commits on Apr 11, 2010
  1. @nobu

    * encoding.c (enc_replicate): new encoding name must be valid

      c-string.  [ruby-dev:40954]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Apr 11, 2010
Something went wrong with that request. Please try again.