Workspace>>#saveString:toFile: ( or FileStream) behaves differently for arguments of type ByteString and Text.
ByteString is used by "Save as"
Text is used by accept.
Reproduceable with:
|fileone filetwo text str|
text:='hello
world' asText.
str:='hello
world'.
fileone:='text1.txt'.
filetwo:='text2.txt'.
FileStream forceNewFileNamed: fileone do: [ :stream |
������ ������ stream converter: (TextConverter newForEncoding: 'utf-8').
������ ������ stream wantsLineEndConversion: true.
������ ������ stream lineEndConvention: #crlf.
������ ������ stream nextPutAll: text ].
������
FileStream forceNewFileNamed: filetwo do: [ :stream |
������ ������ stream converter: (TextConverter newForEncoding: 'utf-8').
������ ������ stream wantsLineEndConversion: true.
������ ������ stream lineEndConvention: #crlf.
������ ������ stream nextPutAll: str ].