ruby-changes:58215
From: Yusuke <ko1@a...>
Date: Fri, 11 Oct 2019 21:49:17 +0900 (JST)
Subject: [ruby-changes:58215] 9e4a53fe13 (master): test/ruby/test_rubyoptions.rb (test_encoding): skipped on Android
https://git.ruby-lang.org/ruby.git/commit/?id=9e4a53fe13 From 9e4a53fe13d8e3ad2e284dea8034bdd6a0561d97 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 11 Oct 2019 21:39:21 +0900 Subject: test/ruby/test_rubyoptions.rb (test_encoding): skipped on Android On Android, nl_langinfo() always returns UTF-8 even when LANG is C. diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index c92d0e8..22ea6b5 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -287,7 +287,7 @@ class TestRubyOptions < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L287 assert_in_out_err(%w(--encoding test_ruby_test_rubyoptions_foobarbazqux), "", [], /unknown encoding name - test_ruby_test_rubyoptions_foobarbazqux \(RuntimeError\)/) - if /mswin|mingw|aix/ =~ RUBY_PLATFORM && + if /mswin|mingw|aix|android/ =~ RUBY_PLATFORM && (str = "\u3042".force_encoding(Encoding.find("locale"))).valid_encoding? # This result depends on locale because LANG=C doesn't affect locale # on Windows. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/