Issue 227 in glassdb: Squeak/Pharo String extensions methods don't work on multibyte strings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 227 in glassdb: Squeak/Pharo String extensions methods don't work on multibyte strings

glassdb
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium GLASS-Server Version-GLASS0.231

New issue 227 by [hidden email]: Squeak/Pharo String extensions  
methods don't work on multibyte strings
http://code.google.com/p/glassdb/issues/detail?id=227

Squeak/Pharo String extension methods ported to Gemstone tend to be  
implemented on String rather than CharacterCollection. This means that  
multibyte strings won't have access to these methods. For example take the  
following test for #truncate: on a multibyte string. The following test  
passes on Pharo 1.1.1 and fails on GLASS 1.0-beta.8.5


testMultiByteTruncate
        | multiByteString |
        multiByteString := 'hello', (String with: (Character value: 8364)).
       
        self assert: 'hell...' equals: (multiByteString truncate: 4)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 227 in glassdb: Squeak/Pharo String extensions methods don't work on multibyte strings

glassdb
Updates:
        Status: Accepted
        Owner: [hidden email]
        Labels: -Version-GLASS0.231 Version-1.0-beta.8.5 Milestone-1.0-beta.8.6

Comment #1 on issue 227 by [hidden email]: Squeak/Pharo String  
extensions methods don't work on multibyte strings
http://code.google.com/p/glassdb/issues/detail?id=227

(No comment was entered for this change.)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 227 in glassdb: Squeak/Pharo String extensions methods don't work on multibyte strings

glassdb
Updates:
        Status: Fixed
        Labels: Fixed-1.0-beta.8.6

Comment #2 on issue 227 by [hidden email]: Squeak/Pharo String  
extensions methods don't work on multibyte strings
http://code.google.com/p/glassdb/issues/detail?id=227

Copied String methods in Grease-Core to CharacterCollection in  
Grease-GemStone-Core.
Added test cases for multiByte strings ... and addition String test classes.
Copied/moved a handful more of Squeak String methods to CharacterCollection  
adding tests along the way:

Name: Squeak-DaleHenrichs.254
Author: DaleHenrichs
Time: 02/17/2011, 17:31:30
UUID: f7b8fc5d-7915-483a-9fec-dc4aee44f22b
Ancestors: Squeak-DaleHenrichs.253

Name: Grease-GemStone-Core-DaleHenrichs.36
Author: DaleHenrichs
Time: 02/17/2011, 17:31:39
UUID: 5b4ca062-9198-4777-a914-d114af3aa2bc
Ancestors: Grease-GemStone-Core-DaleHenrichs.35

Name: Grease-Tests-GemStone-Core-DaleHenrichs.13
Author: DaleHenrichs
Time: 02/17/2011, 17:31:37
UUID: f62ab156-12b1-4303-a41b-e7d7024698b5
Ancestors: Grease-Tests-GemStone-Core-DaleHenrichs.12

available in Grease 1.0.4