* [ruby-core:74054] [Ruby trunk Bug#12127] LANG environment is not respected
[not found] <redmine.issue-12127.20160229141454@ruby-lang.org>
@ 2016-02-29 14:14 ` v.ondruch
2016-03-01 2:41 ` [ruby-core:74075] [Ruby trunk Bug#12127][Feedback] " duerst
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: v.ondruch @ 2016-02-29 14:14 UTC (permalink / raw
To: ruby-core
Issue #12127 has been reported by Vit Ondruch.
----------------------------------------
Bug #12127: LANG environment is not respected
https://bugs.ruby-lang.org/issues/12127
* Author: Vit Ondruch
* Status: Open
* 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:74075] [Ruby trunk Bug#12127][Feedback] LANG environment is not respected
[not found] <redmine.issue-12127.20160229141454@ruby-lang.org>
2016-02-29 14:14 ` [ruby-core:74054] [Ruby trunk Bug#12127] LANG environment is not respected v.ondruch
@ 2016-03-01 2:41 ` duerst
2016-03-01 4:08 ` [ruby-core:74078] [Ruby trunk Bug#12127] " naruse
2016-03-02 14:07 ` [ruby-core:74098] [Ruby trunk Bug#12127][Third Party's Issue] " v.ondruch
3 siblings, 0 replies; 4+ messages in thread
From: duerst @ 2016-03-01 2:41 UTC (permalink / raw
To: ruby-core
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:74078] [Ruby trunk Bug#12127] LANG environment is not respected
[not found] <redmine.issue-12127.20160229141454@ruby-lang.org>
2016-02-29 14:14 ` [ruby-core:74054] [Ruby trunk Bug#12127] LANG environment is not respected v.ondruch
2016-03-01 2:41 ` [ruby-core:74075] [Ruby trunk Bug#12127][Feedback] " duerst
@ 2016-03-01 4:08 ` naruse
2016-03-02 14:07 ` [ruby-core:74098] [Ruby trunk Bug#12127][Third Party's Issue] " v.ondruch
3 siblings, 0 replies; 4+ messages in thread
From: naruse @ 2016-03-01 4:08 UTC (permalink / raw
To: ruby-core
Issue #12127 has been updated by Yui NARUSE.
I can't reproduce it.
Could you show `ruby/ruby -ve "p Encoding.find('locale');puts ''.encoding"`?
----------------------------------------
Bug #12127: LANG environment is not respected
https://bugs.ruby-lang.org/issues/12127#change-57229
* 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:74098] [Ruby trunk Bug#12127][Third Party's Issue] LANG environment is not respected
[not found] <redmine.issue-12127.20160229141454@ruby-lang.org>
` (2 preceding siblings ...)
2016-03-01 4:08 ` [ruby-core:74078] [Ruby trunk Bug#12127] " naruse
@ 2016-03-02 14:07 ` v.ondruch
3 siblings, 0 replies; 4+ messages in thread
From: v.ondruch @ 2016-03-02 14:07 UTC (permalink / raw
To: ruby-core
Issue #12127 has been updated by Vit Ondruch.
Status changed from Feedback to Third Party's Issue
Yui NARUSE wrote:
> I can't reproduce it.
> Could you show `ruby/ruby -ve "p Encoding.find('locale');puts ''.encoding"`?
~~~
$ ruby -ve "p Encoding.find('locale');puts ''.encoding"
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
#<Encoding:US-ASCII>
US-ASCII
~~~
Actually, I suspect this my have something to do with recent changes in packaging of glibc in Fedora [1]. I don't have any locales installed, except the default C.UTF-8, which works just fine:
~~~
$ LANG=C.UTF-8 ruby -e "puts ''.encoding"
UTF-8
~~~
If I install all langpacks, the command above works just fine. So it is likely third party issue. I guess that Ruby probably cannot respect just the UTF-8 part ....
[1] http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/commit/?id=f2d40207eae526f4183c755c1c16aed2daec0279
----------------------------------------
Bug #12127: LANG environment is not respected
https://bugs.ruby-lang.org/issues/12127#change-57244
* Author: Vit Ondruch
* Status: Third Party's Issue
* 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-02 13:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <redmine.issue-12127.20160229141454@ruby-lang.org>
2016-02-29 14:14 ` [ruby-core:74054] [Ruby trunk Bug#12127] LANG environment is not respected v.ondruch
2016-03-01 2:41 ` [ruby-core:74075] [Ruby trunk Bug#12127][Feedback] " duerst
2016-03-01 4:08 ` [ruby-core:74078] [Ruby trunk Bug#12127] " naruse
2016-03-02 14:07 ` [ruby-core:74098] [Ruby trunk Bug#12127][Third Party's Issue] " v.ondruch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).