lib/unicode_normalize.rb: (unicode_normalize!): change method names
in commented-out code. Followup to r48027.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
configure.in: downloader needs BASERUBY

* configure.in: try downloader only if BASERUBY is working.  use
  tarballs to build without BASERUBY.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tool/unicode_norm_gen.rb: for 1.8.5 BASERUBY

* tool/unicode_norm_gen.rb: get rid of new features for 1.8.5
  BASERUBY.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
unicode_norm_gen.rb: get rid of hard coded paths

* common.mk (lib/unicode_normalize/tables.rb): run at top srcdir.

* tool/unicode_norm_gen.rb: add -input and -output options to set
  InputDataDir and OuputDataDir respectively.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
lib/unicode_normalize.rb: removing unnecessary 'self'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
unicode_normalize/normalize.rb: remove unnecessary module names

* lib/unicode_normalize/normalize.rb (UnicodeNormalize): use self
  instead of module name and remove module name if unnecessary.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
unicode_normalize/normalize.rb: simplify

* lib/unicode_normalize/normalize.rb (NF_HASH_{D,C,K}): remove
  first element by Hash#shift.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
unicode_normalize/normalize.rb: remove prefix

* lib/unicode_normalize/normalize.rb (hangul_decomp_one): remove
  system hungarian prefix, nonsense in ruby.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm_insnhelper.c: preserve encoding

* vm_insnhelper.c (vm_getivar): preserve variable name encoding in
  warning message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
error.c: check if EWOULDBLOCK is defined

* error.c (set_syserr): EWOULDBLOCK may not be defined, check if
  defined first.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
io.c: enclose statements by ifdef

* io.c (maygvl_copy_stream_read): enclose following statements by
  ifdef, not only a case label.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test_module.rb: test with UTF-8

* test/ruby/test_module.rb (test_uninitialized_instance_variable):
  test with UTF-8 default external encoding for non-locale
  environments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
lib/unicode_normalize.rb: revert r48046. The s in sIndex
is not hungarian notation. The variable name sIndex is
directly taken from the relevant part of the Unicode
Standard, where it is written SIndex and stands for
'syllable index'. See pp. 144/145 of
http://www.unicode.org/versions/Unicode7.0.0/ch03.pdf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tool/downloader.rb: Make sure we update to latest version
if network connection is available, but we don't fail if
there is no network connection but option -e is set and
we already have a version of the file.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
config.mk: Added missing data files as targets for prerequisite update_unicode.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
unicode_normalize/normalize.rb: rename variable

* lib/unicode_normalize/normalize.rb (hangul_decomp_one): use more
  descriptive name.  leave [SLVT]BASE and [LVTNS]COUNT as they are
  vague names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
common.mk: update unicode files every times

* common.mk (update-unicode): remove -e option to force update
  every builds.

* tool/downloader.rb (Downloader.download): return if ims is nil
  and target file is existing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/mkmf.rb: no need to convert path separator for COPY because it's
  ruby -run cp and it can treat '/' on any platform.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
common.mk: disable force download of unicode files by default

* tool/downloader.rb: add -a option to always download regardless
  existing files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk (lib/unicode_normlize/table.rb): enable running (n)make
  in non-srcdir.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e