The Trunk: HelpSystem-Core-mt.102.mcz

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

The Trunk: HelpSystem-Core-mt.102.mcz

commits-2
Marcel Taeumel uploaded a new version of HelpSystem-Core to project The Trunk:
http://source.squeak.org/trunk/HelpSystem-Core-mt.102.mcz

==================== Summary ====================

Name: HelpSystem-Core-mt.102
Author: mt
Time: 18 December 2017, 5:42:15.024502 pm
UUID: 6871bdd2-b9f9-484b-a35e-f2d659de234e
Ancestors: HelpSystem-Core-bf.101

Makes file-based help topics more robust in case you try to read a binary file as text. This happens, for example, if macOS app bundles do not strip "._" files.

=============== Diff against HelpSystem-Core-bf.101 ===============

Item was changed:
  ----- Method: FileBasedHelpTopic>>contents (in category 'accessing') -----
  contents
 
  ^ contents ifNil: [
+ [contents := fileEntry readStream nextChunkText withSqueakLineEndings]
+ on: InvalidUTF8
+ do: [:err | ('Invalid UTF8 contents!! Please check ', self fileEntry fullName) asText addAttribute: TextColor red]]!
- contents := fileEntry readStream nextChunkText withSqueakLineEndings].!