DescriptionImprove process output watcher's handling of multi-byte UTF8 characters
Speciffically, handle case when a non ASCII UTF8 character is read
partially from the process output. Instead of reporting read character
bytes imediatelly, cache them until the rest of the character is read
from the process output.
BUG=278340
TEST=in crosh (see comment #1 in the bug):
$python
>>> print(u"\u20ac" * 10000)
Verify a series of EURO signs is displayed (without "unknown" characters)
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270799
Patch Set 1 #Patch Set 2 : some nits #Patch Set 3 : . #Patch Set 4 : . #Patch Set 5 : . #Patch Set 6 : . #Patch Set 7 : . #
Messages
Total messages: 12 (0 generated)
|