From: duerst@... Date: 2016-03-01T02:41:53+00:00 Subject: [ruby-core:74075] [Ruby trunk Bug#12127][Feedback] LANG environment is not respected Issue #12127 has been updated by Martin D��rst. Status changed from Open to Feedback Can you explain what the problem is with $ LANG=en_US.utf-8 ruby -e "puts ''.encoding" US-ASCII As far as I understand, strings with an encoding of US-ASCII can be used wherever an UTF-8 string can be used, so this shouldn't create any new errors. ---------------------------------------- Bug #12127: LANG environment is not respected https://bugs.ruby-lang.org/issues/12127#change-57226 * Author: Vit Ondruch * Status: Feedback * Priority: Normal * Assignee: * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- Ruby 2.2: ~~~ $ ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux] $ ruby -e "puts ''.encoding" US-ASCII $ LANG=en_US.utf-8 ruby -e "puts ''.encoding" UTF-8 ~~~ Ruby 2.3: ~~~ $ ruby -v ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] $ ruby -e "puts ''.encoding" US-ASCII $ LANG=en_US.utf-8 ruby -e "puts ''.encoding" US-ASCII ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: