The Trunk: Files-mt.223.mcz

[email protected] Sat, 27 Jun 2026 09:05:41 0000
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Marcel Taeumel uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-mt.223.mcz

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

Name: Files-mt.223
Author: mt
Time: 27 June 2026, 11:05:41.810337 am
UUID: ffe1c678-9f25-b94c-a9e4-cea040eda1bc
Ancestors: Files-ct.222

Complement Multilingual-mt.293, which reverts Multilingual-mt.291 and 292.

=============== Diff against Files-ct.222 ===============

Item was removed:
- ----- Method: FileStream class>>newForStdio: (in category 'stdio') -----
- newForStdio: moniker
- 	"This is a hook for subclasses to initialize themselves properly."
- 
- 	^self new!

Item was changed:
  ----- Method: FileStream class>>standardIOStreamNamed:forWrite: (in category 'stdio') -----
  standardIOStreamNamed: moniker forWrite: forWrite
  	
  	| index |
  	index := #(stdin stdout stderr) identityIndexOf: moniker.
  	^((StdioFiles ifNil: [ StdioFiles := Array new: 3 ]) at: index)
  		ifNil: [
  			StdioFiles
  				at: index 
  				put: (
  					(TheStdioHandles at: index)
  						ifNil: [ ^self error: moniker, ' is unavailable' ]
  						ifNotNil: [ :handle |
+ 							self stdioStreamClass newForStdio
- 							(self stdioStreamClass newForStdio: moniker)
  								openOnHandle: handle
  								name: moniker
  								forWrite: forWrite ]) ]
  !

Item was changed:
  ----- Method: FileStream class>>updateStdioFiles (in category 'stdio') -----
  updateStdioFiles
  	"Make sure that all existing stdio files are instances of #stdioStreamClass."
  
  	StdioFiles ifNil: [ ^self ].
  	Stdin := Stdout := Stderr := nil.
  	StdioFiles := StdioFiles collect: [ :file |
  		file ifNotNil: [
  			file class == self stdioStreamClass
  				ifTrue: [ file ]
  				ifFalse: [
+ 					self stdioStreamClass newForStdio
- 					(self stdioStreamClass newForStdio: file name)
  						copyFrom: file;
  						yourself ] ] ]
  !

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]