Updates:
        Status: Started
        Owner: pekka.klarck
        Labels: -Priority-Medium Priority-Low

Comment #4 on issue 1167 by [email protected]: Consistent opening of files for reading and writing
http://code.google.com/p/robotframework/issues/detail?id=1167

After studying the code a little, I think the following is best way to handle this:

0) Check does Testdoc and Libdoc have tests for correct line separators. If not, add them.

1) Replace codecs.open with open.

2) Make UTF-8 the default encoding in all APIs. Currently it is None (i.e. no encoding) in places that expect files opened with codecs.open. Keep the possibility to use None as encoding to allow external tools to use codecs.opened files.

3) Make '\n' the default line separator in all APIs. Currently it is os.linesep in places that expect files opened in binary mode. Replace os.linesep used unconditionally with '\n' or make line separator configurable. Line separator must be configurable to allow Tidy and possible external tools to use custom separators.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to