[Pharo-project] Setting File>>serverMode

Stéphane Ducasse stephane.ducasse at inria.fr
Sun May 29 13:28:28 CEST 2011


stdioStreamClass

	^self encodeAndDecodeStdioFiles
		ifTrue: [ MultiByteFileStream ]
		ifFalse: [ StandardFileStream ]

so it is used?

encodeAndDecodeStdioFiles
	
	^EncodeAndDecodeStdioFiles ifNil: [ true ]

stdioSettingOn: aBuilder

	<systemsettings>
	"we should put them under System"
	
	(aBuilder group: #Files) 
		label: 'Files' translated;
		description: 'File settings' translated;
		with: [
			(aBuilder setting: #encodeAndDecodeStdioFiles)
				label: 'Server mode' translated;
				target: FileStream;
				description: 'If enabled, then the contents of stdin, stdout and stderr are encoded/decoded using the system default text converter' translated]



Stef


>>> 
>>> 
>> 
>> 
>> It seems the code behind does nothing anyway.
>> 
>> -> EncodeAndDecodeStdioFiles is only set to true in initialize. No other use.
>> 
>> So we can clean up...
> 
> 
> <CleanUpServerModeSetting.1.cs>
> 
> I will put an issue for that.
> 
> 
> --
> Marcus Denker  -- http://www.marcusdenker.de
> INRIA Lille -- Nord Europe. Team RMoD.
> 




More information about the Pharo-project mailing list