[Pkg] Installer: Installer-Core-kph.289.mcz
squeak-dev-noreply at lists.squeakfoundation.org
squeak-dev-noreply at lists.squeakfoundation.org
Sun Feb 15 06:32:58 UTC 2009
A new version of Installer-Core was added to project Installer:
http://www.squeaksource.com/Installer/Installer-Core-kph.289.mcz
==================== Summary ====================
Name: Installer-Core-kph.289
Author: kph
Time: 14 February 2009, 10:32:50 pm
UUID: d95347c1-68bf-954d-ad27-9e1c38b1457e
Ancestors: Installer-Core-kph.287
Deal properly with fileIns that were created by MultiByteFileStream and have a BOM + UTF8 encoding.
=============== Diff against Installer-Core-kph.287 ===============
Item was changed:
----- Method: Installer>>installDefault:from: (in category 'mantis') -----
installDefault: aFileName from: stream
+ "Check for UTF-8 input before filing it in"
+ | pos bom |
+ pos := stream position.
+ bom := stream next: 3.
+ ((bom at: 1) asInteger = 16rEF
+ and:[(bom at: 2) asInteger = 16rBB]
+ and:[(bom at: 3) asInteger = 16rBF])
+ ifTrue:[(RWBinaryOrTextStream on: stream upToEnd utf8ToSqueak) fileIn]
+ ifFalse:[stream position: pos; fileIn]
+ !
-
- stream fileIn.!
More information about the Packages
mailing list