[New-bugs-announce] [issue15019] Sting termination on Linux
Jānis
report at bugs.python.org
Wed Jun 6 16:47:45 CEST 2012
New submission from Jānis <janis.judvaitis at gmail.com>:
test = "Hi there :)"
print len(test), test // Prints "11 Hi there :)"
test = test.replace(" ", "\x00")
print len(test), test // Prints "11
On Windows '\x00' is same as ' ', but on linux string is terminated at first occurance of '\x00'. Results on problems with pySerial and binary data, so I can't replace '\x00' with ' '.
----------
components: Interpreter Core
messages: 162413
nosy: jjanis
priority: normal
severity: normal
status: open
title: Sting termination on Linux
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15019>
_______________________________________
More information about the New-bugs-announce
mailing list