General

Profile

vovik (Vladimir Chernis)

  • Login: vovik
  • Email: iamvlad@gmail.com
  • Registered on: 11/29/2011
  • Last sign in: 12/02/2011

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/02/2011

10:36 AM Ruby Bug #5684: [[Ruby 1.9:]] Socket doesn't respect default external encoding
To summarize:
File IO encoding works correctly in that it respects the default external encoding specified in the -E option to ruby. But Socket encoding does not.
I've attached a simple test case to illustrate the problem. When I run...
vovik (Vladimir Chernis)
10:17 AM Ruby Bug #5684: [[Ruby 1.9:]] Socket doesn't respect default external encoding
Yui NARUSE wrote:
> You can set encodings to a Socket object with Socket#set_encoding.
I understand, but if I don't call Socket#set_encoding, shouldn't the encoding fall back to the default encoding specified by the -E option to ruby?
...
vovik (Vladimir Chernis)

11/29/2011

11:35 AM Ruby Bug #5684 (Rejected): [[Ruby 1.9:]] Socket doesn't respect default external encoding
When receiving data from a TCPSocket (as in client.rb, attached), the default internal encoding specified by the -E option to ruby is not respected.
Steps:
(1) In terminal window A, run: ruby server.rb
(2) In terminal window B, run:...
vovik (Vladimir Chernis)

Also available in: Atom