<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_m17n.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Remove get_actual_encoding() and the dynamic endian detection for dummy UTF-16/UTF-32</title>
<updated>2022-09-12T12:02:34+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-09-10T17:15:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6525b6f760ccd9612c9546b0313ab1c7e4af5e66'/>
<id>6525b6f760ccd9612c9546b0313ab1c7e4af5e66</id>
<content type='text'>
* And simplify callers of get_actual_encoding().
* See [Feature #18949].
* See https://github.com/ruby/ruby/pull/6322#issuecomment-1242758474
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* And simplify callers of get_actual_encoding().
* See [Feature #18949].
* See https://github.com/ruby/ruby/pull/6322#issuecomment-1242758474
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18958] format string must be ASCII compatible</title>
<updated>2022-08-20T01:06:40+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-19T14:53:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1a2f99275be28fb0e8ff4cfc0165966e99898d70'/>
<id>1a2f99275be28fb0e8ff4cfc0165966e99898d70</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18955] format single character for `%c`</title>
<updated>2022-08-19T18:57:13+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-19T16:04:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1ef49de83483e6f78bfe9c795a473ccfb29db150'/>
<id>1ef49de83483e6f78bfe9c795a473ccfb29db150</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18955] Check length of argument for `%c` in proper encoding</title>
<updated>2022-08-19T18:57:13+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-19T15:16:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ce384ef5a95b809f248e089c1608e60753dabe45'/>
<id>ce384ef5a95b809f248e089c1608e60753dabe45</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use omit instead of skip: test/ruby/**/*.rb</title>
<updated>2022-01-04T08:25:30+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-01-04T08:25:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=47bf64a26d3d95a312ea5cf5d94ee1d2104f5e26'/>
<id>47bf64a26d3d95a312ea5cf5d94ee1d2104f5e26</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test/ruby/test_m17n.rb: skip a test that breaks another test</title>
<updated>2021-11-15T07:53:49+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-11-15T07:52:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ca0a5edb5f42aa7c891c834a827863458180aa0f'/>
<id>ca0a5edb5f42aa7c891c834a827863458180aa0f</id>
<content type='text'>
See https://bugs.ruby-lang.org/issues/18338
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See https://bugs.ruby-lang.org/issues/18338
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "test/ruby/test_m17n.rb: Run a test under assert_separately"</title>
<updated>2021-11-15T06:21:24+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-11-15T06:21:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f9638c3b1716df4a94ea6ae0854cf55d66072ee4'/>
<id>f9638c3b1716df4a94ea6ae0854cf55d66072ee4</id>
<content type='text'>
This reverts commit a698181021c11711dc56b74dacbdebc2895b5384.

It failed on macos for a unknown problem.
```
    1) Error:
  TestM17N#test_object_inspect_external:
  Encoding::ConverterNotFoundError: code converter not found (US-ASCII to UTF-16BE)
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:312:in `encode'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:312:in `inspect'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:315:in `inspect'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:315:in `&lt;main&gt;'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:299:in `test_object_inspect_external'
```
https://github.com/ruby/ruby/runs/4207871418?check_suite_focus=true
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit a698181021c11711dc56b74dacbdebc2895b5384.

It failed on macos for a unknown problem.
```
    1) Error:
  TestM17N#test_object_inspect_external:
  Encoding::ConverterNotFoundError: code converter not found (US-ASCII to UTF-16BE)
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:312:in `encode'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:312:in `inspect'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:315:in `inspect'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:315:in `&lt;main&gt;'
      /Users/runner/work/ruby/ruby/src/test/ruby/test_m17n.rb:299:in `test_object_inspect_external'
```
https://github.com/ruby/ruby/runs/4207871418?check_suite_focus=true
</pre>
</div>
</content>
</entry>
<entry>
<title>test/ruby/test_m17n.rb: Run a test under assert_separately</title>
<updated>2021-11-15T05:13:20+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-11-15T05:13:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a698181021c11711dc56b74dacbdebc2895b5384'/>
<id>a698181021c11711dc56b74dacbdebc2895b5384</id>
<content type='text'>
The test uses `Encoding.default_external = Encoding::UTF_16BE`, which
may add a wrongly UTF_16BE-encoded path to $LOADED_FEATURES (depending
on the order of tests). Unfortunately this breaks another test:

http://ci.rvm.jp/results/trunk-test@ruby-sky1/3711615
```
/tmp/ruby/v3/src/trunk-test/test/io/console/test_io_console.rb:11:in `===': incompatible encoding regexp match (US-ASCII regexp with UTF-16BE string) (Encoding::CompatibilityError)
```

According to @naruse-san, we don't pay effort to such a case, so this
change just avoids the issue by running the test in question under
another process.

Co-Authored-By: Koichi Sasada &lt;ko1@atdot.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test uses `Encoding.default_external = Encoding::UTF_16BE`, which
may add a wrongly UTF_16BE-encoded path to $LOADED_FEATURES (depending
on the order of tests). Unfortunately this breaks another test:

http://ci.rvm.jp/results/trunk-test@ruby-sky1/3711615
```
/tmp/ruby/v3/src/trunk-test/test/io/console/test_io_console.rb:11:in `===': incompatible encoding regexp match (US-ASCII regexp with UTF-16BE string) (Encoding::CompatibilityError)
```

According to @naruse-san, we don't pay effort to such a case, so this
change just avoids the issue by running the test in question under
another process.

Co-Authored-By: Koichi Sasada &lt;ko1@atdot.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Show failed environment variables</title>
<updated>2021-09-27T11:47:44+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-09-27T07:01:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dfa67db62bbffd9f6900b46aa04309ea77acf673'/>
<id>dfa67db62bbffd9f6900b46aa04309ea77acf673</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Windows: Read ENV names and values as UTF-8 encoded Strings (#3818)</title>
<updated>2020-12-07T17:00:39+00:00</updated>
<author>
<name>Lars Kanis</name>
<email>kanis@comcard.de</email>
</author>
<published>2020-12-07T17:00:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ca76337a00244635faa331afd04f4b75161ce6fb'/>
<id>ca76337a00244635faa331afd04f4b75161ce6fb</id>
<content type='text'>
* Windows: Read ENV names and values as UTF-8 encoded Strings

Implements issue #12650: fix https://bugs.ruby-lang.org/issues/12650

This also removes the special encoding for ENV['PATH'] and some
complexity in the code that is unnecessary now.

* Windows: Improve readablity of getenv() encoding

getenv() did use the expected codepage as an implicit parameter of the macro.
This is mis-leading since include/ruby/win32.h has a different definition.
Using the "cp" variable explicit (like the other function calls) makes it
more readable and consistent.

* Windows: Change external C-API macros getenv() and execv() to use UTF-8

They used to process and return strings with locale encoding,
but since all ruby-internal spawn and environment functions use UTF-8,
it makes sense to change the C-API equally.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Windows: Read ENV names and values as UTF-8 encoded Strings

Implements issue #12650: fix https://bugs.ruby-lang.org/issues/12650

This also removes the special encoding for ENV['PATH'] and some
complexity in the code that is unnecessary now.

* Windows: Improve readablity of getenv() encoding

getenv() did use the expected codepage as an implicit parameter of the macro.
This is mis-leading since include/ruby/win32.h has a different definition.
Using the "cp" variable explicit (like the other function calls) makes it
more readable and consistent.

* Windows: Change external C-API macros getenv() and execv() to use UTF-8

They used to process and return strings with locale encoding,
but since all ruby-internal spawn and environment functions use UTF-8,
it makes sense to change the C-API equally.</pre>
</div>
</content>
</entry>
</feed>
