Mantis - Squeak Packages
Viewing Issue Advanced Details
6924 Seaside minor always 02-14-08 05:51 02-14-08 07:17
pmm  
renggli  
normal  
resolved  
fixed  
none    
none  
0006924: WALocale class >> parseCountryString portability issues
in WALocale class >> parseCountryString, rewrite it like this:

    | string lines |
    iso2Countries := Dictionary new.
    string := self countryList.
    lines := string findTokens: Character cr.
        lines allButFirst collect:
                [:each |
                | parts |
                parts := each findTokens: $;.
                parts size >= 2 ifTrue: [iso2Countries at: parts second
put: parts first]]
    ]

with two changes: a) Using #findTokens: instead of #subStrings: since
that's what is already in SeasidePlatformSupport; b) Testing that the
result has two items because in my source the second line of the
#countryList is blank.

reported by Paolo

Notes
(0011779)
pmm   
02-14-08 05:52   
fixed in Seaside-Core-pmm.53
(0011786)
renggli   
02-14-08 07:17   
Seaside-Core-pmm.53