Bug 1054035 - Unicode box drawing characters are mangled in console.log
Summary: Unicode box drawing characters are mangled in console.log
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: lab controller
Version: 0.15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.15.3
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 952661
TreeView+ depends on / blocked
 
Reported: 2014-01-16 06:31 UTC by Dan Callaghan
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 04:52:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Dan Callaghan 2014-01-16 06:31:51 UTC
Description of problem:
beaker-watchdog attempts to replace control characters and other binary junk with whitespace when it stores the console log for a recipe, in order to make it readable. But it mangles Unicode box drawing characters, and probably all Unicode characters above a certain point (outside Latin1 perhaps?).

Version-Release number of selected component (if applicable):
0.15.3

How reproducible:
easily

Steps to Reproduce:
1. Look at console.log for any RHEL6 installation.

Actual results:
Stuff like this:
     
�  �  �  �  �  �  �  �  �  �  �  �  �  �  � � Error downloading kickstart file �  �  �  �  �  �  �  �  �  �  �  �  �  �  �       
�      
�       
�   Unable to download the kickstart file.  Please modify the    �       

Expected results:
Connecting over conserver I see that the actual output from Anaconda looks like this:

        ┌─────────────┤ Error downloading kickstart file ├─────────────┐        
        │                                                              │        
        │ Unable to download the kickstart file.  Please modify the    │        
...

The box drawing characters should be preserved unmangled in Beaker's console.log as well.

Additional info:
I'm guessing that the UTF-8 encoding of these characters contains a byte which is being replaced by Beaker.

Comment 2 Dan Callaghan 2014-01-17 02:46:05 UTC
I needed to fix this for bug 952661, so that I can match against the box drawing characters.

http://gerrit.beaker-project.org/2695

Comment 5 Nick Coghlan 2014-02-03 04:52:05 UTC
This change is included in the Beaker 0.15.3 maintenance release:

http://beaker-project.org/docs/whats-new/release-0.15.html#beaker-0-15-3


Note You need to log in before you can comment on or make changes to this bug.