Bug report #8915
Newline character of Python output is forced to LF only
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||up/downstream|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17591|
Execution of following Python code:
f = open(filename, "w")
is expected to output the file which includes newline character according to platform.
Although I tested the code on Windows version of QGIS, the newline character becomes not CR+LF but LF.
This behaviour influences batch file generation like Processing plug-in.
The batch file which includes multibyte character & LF newline doesn't work on some
localized version of Windows (e.g., Japanese).