Project

General

Profile

Actions

Bug #692

closed

non-ascii comment with Encoding.default_internal set raises Encoding::InvalidByteSequenceError

Added by stefan (Stefan Lang) about 16 years ago. Updated over 12 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:19579]

Description

=begin
$ cat utf8comment.rb
# encoding: utf-8
# comment containing non ascii char: รถ
p Encoding.default_internal
p ENCODING
p "foo".encoding

 $ ruby19 --version
 ruby 1.9.1 (2008-10-28 revision 19983) [x86_64-linux]

 $ ruby19 utf8comment.rb
 nil
 #<Encoding:UTF-8>
 #<Encoding:UTF-8>

 $ ruby19 -U utf8comment.rb
 ruby19: "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError)

=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) about 16 years ago

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

=begin
Applied in changeset r20013.
=end

Actions

Also available in: Atom PDF

Like0
Like0