You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run the code on Steps to reproduce with Sublime Text build you correctly get the output:
But when the package is loaded by Sublime Text, and it tries to output the same contents on the Sublime Text Console Ctrl+', the output is cut after the nul bytes:
Expected behavior
Not cut out lines with null bytes or control characters on the Console view.
Actual behavior
It does cut out lines with null bytes or control characters on the Console view.
Steps to reproduce
Create the package test.py on your Packages folder:
# -*- coding: UTF-8 -*-importsysprint(sys.version)
list= \
[
"1. The next line start with a null byte: ",
"2. \x00:7: Emergency stop ",
"3. The line before this must start with a null byte"
]
deftest_iterator():
list_iterator=list.__iter__()
whileTrue:
# will fail when no more linestry:
item=next(list_iterator)
if"Emergency stop"initem:
print( "Found Emergency stop on: "+item )
print( "item: "+item )
exceptStopIteration:
print( "On StopIteration" )
breakforiteminlist:
if": Emergency stop"initem:
print( "Found Emergency stop on: "+item )
print( item )
# test_iterator()
When Sublime Text loads it, you will see:
3.3.6 (default, Feb 2 2017, 06:15:59) [MSC v.1600 32 bit (Intel)]
1. The next line start with a null byte:
Found Emergency stop on: 2.
2.
3. The line before this must start with a null byte
But you should see:
3.3.6 (default, Feb 2 2017, 06:15:59) [MSC v.1600 32 bit (Intel)]
1. The next line start with a null byte:
Found Emergency stop on: 2.
2. NUL:7: Emergency stop
3. The line before this must start with a null byte
Which is the same output as when running with with the build system.
Summary
If you run the code on Steps to reproduce with Sublime Text build you correctly get the output:
But when the package is loaded by Sublime Text, and it tries to output the same contents on the Sublime Text Console
Ctrl+'
, the output is cut after the nul bytes:Expected behavior
Not cut out lines with null bytes or control characters on the Console view.
Actual behavior
It does cut out lines with null bytes or control characters on the Console view.
Steps to reproduce
test.py
on your Packages folder:Environment
dpi_scale
used in ST 1.0Related:
The text was updated successfully, but these errors were encountered: