Project

General

Profile

Actions

Bug #1204

closed

Bug in String#force_encoding?

Added by ba (Alexander Beisig) about 15 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-02-24 trunk 22579) [i686-linux]
Backport:
[ruby-core:22437]

Description

=begin
Running the attached test program (on UTF-8 terminal):

$ ruby test.rb
#Encoding:ASCII-8BIT "\xC3\xB6" 2
#Encoding:UTF-8 "ö" 2
#Encoding:ASCII-8BIT "\xC3\xB6" 2
#Encoding:UTF-8 "ö" 1

I don't understand why a.size is 2, especially since b.size is correct. Am I missing something?
=end


Files

test.rb (401 Bytes) test.rb test program ba (Alexander Beisig), 02/25/2009 08:20 AM
Actions #1

Updated by nobu (Nobuyoshi Nakada) about 15 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r22611.
=end

Actions

Also available in: Atom PDF

Like0
Like0