summaryrefslogtreecommitdiff
path: root/java/src/json/ext/GeneratorState.java
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:28:16 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-07-03 11:28:16 +0900
commit607678068648e2922c3728b4e5e954ff5bb4a9ef (patch)
tree17213ecfbf246a0527befbc85c42209b3590495b /java/src/json/ext/GeneratorState.java
parent380699de48bf697e9c9610858d4c897ebb4bd79f (diff)
downloadjson-607678068648e2922c3728b4e5e954ff5bb4a9ef.tar.gz
Do not add a relative path to $LOAD_PATH
... because it conflicts with test/ruby/test_m17n.rb. An exception `incompatible character encodings: UTF-8 and UTF-16BE` occurs when: * a non-existence relative path is added to $LOAD_PATH, * ASCII-incompatible encoding is set to default_external, and * some file is loaded. ``` $LOAD_PATH << "no_existing_dir" Encoding.default_external = Encoding::UTF_16BE load "dummy.rb" #=> incompatible character encodings: UTF-8 and UTF-16BE ``` This issue can be actually observed by a combination of out-of-place build and the following command: make test-all TESTS="json ruby/m17n -n test_object_inspect_external" http://ci.rvm.jp/logfiles/brlog.trunk-test-random.20200322-221411 ASCII-incompatible default external encoding assumes that the cwd is the encoding, and it is attempted to beconcatenated with a non-existence relative LOAD_PATH UTF-8 string, which causes the exception. This changeset avoids a relative path.
Diffstat (limited to 'java/src/json/ext/GeneratorState.java')
0 files changed, 0 insertions, 0 deletions