help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [bug] UnicodeString conversion truncation


From: Robin Redeker
Subject: [Help-smalltalk] [bug] UnicodeString conversion truncation
Date: Sat, 20 Oct 2007 01:33:36 -0700

Issue status update for http://smalltalk.gnu.org/node/108 Post a follow up: http://smalltalk.gnu.org/project/comments/add/108

Project:      GNU Smalltalk
Version:      <none>
Component:    Base classes
Category:     bug reports
Priority:     normal
Assigned to:  Unassigned
Reported by:  elmex
Updated by:   elmex
Status:       active

There seems to be another bug with UnicodeStrings.
Assume following program:

Eval [
PackageLoader fileInPackage: #I18N.
a := WriteStream on: (Array new).
1 to: 100 do: [:nr| a nextPut: nr].
str := (a contents collect: [:nr| nr printString]) join: ','.
str displayNl.
str2 := str asUnicodeString.
"str2 asString displayNl."   "<- gives a backtrace"
str3 := '', str2.
str3 displayNl.
]

It prints two lines of numbers, here the second line
is truncated right after 88, like this: "...,88,8"

When I uncomment the commented line in the code snippet above I get a
backtrace:

Object: Iconv new "<0x2ac0d49dba00>" error: incomplete input sequence
I18N.IncompleteSequenceError(Exception)>>signal
I18N.IncompleteSequenceError class(Exception class)>>signal
I18N.Encoders.Iconv>>convertMore
I18N.Encoders.Iconv>>atEnd
[] in I18N.Encoders.Iconv(Stream)>>do:
BlockClosure>>on:do:
I18N.Encoders.Iconv(Stream)>>do:
I18N.Encoders.Iconv(Stream)>>contents
UnicodeString>>asString
UndefinedObject>>executeStatements






reply via email to

[Prev in Thread] Current Thread [Next in Thread]