Bug 1088419

Summary: LC_ALL=C systemd-delta prints escaped unicode characters ('→')
Product: Red Hat Enterprise Linux 7 Reporter: Bryn M. Reeves <bmr>
Component: systemdAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: Branislav Blaškovič <bblaskov>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: bblaskov, johannbg, jscotka, lnykryn, msekleta, ohadlevy, plautrba, systemd-maint-list, systemd-maint, vpavlin, zbyszek
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-208-12.el7 Doc Type: Bug Fix
Doc Text:
Cause: With some locales sign "→" did not display properly. Consequence: <E2><86><92> was shown instead of "→" Fix: is_locale_utf8() ? "→" : "->"; Result: "->" should be shown in non-utf8 environments.
Story Points: ---
Clone Of: 1088418 Environment:
Last Closed: 2015-03-05 11:09:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1088418    
Bug Blocks:    

Description Bryn M. Reeves 2014-04-16 15:34:06 UTC
+++ This bug was initially created as a clone of Bug #1088418 +++

Description of problem:
# LC_ALL=C systemd-delta 
[REDIRECTED]   /etc/systemd/system/default.target <E2><86><92> /usr/lib/systemd/system/default.target
[EXTENDED]   /run/systemd/system/session-1.scope <E2><86><92> /run/systemd/system/session-1.scope.d/90-SendSIGHUP.conf
[EXTENDED]   /run/systemd/system/session-1.scope <E2><86><92> /run/systemd/system/session-1.scope.d/90-TimeoutStopUSec.conf
[EXTENDED]   /run/systemd/system/session-1.scope <E2><86><92> /run/systemd/system/session-1.scope.d/90-KillMode.conf
[EXTENDED]   /run/systemd/system/session-1.scope <E2><86><92> /run/systemd/system/session-1.scope.d/90-After-systemd-user-sessions\x2eservice.conf
[EXTENDED]   /run/systemd/system/session-1.scope <E2><86><92> /run/systemd/system/session-1.scope.d/90-Description.conf
[EXTENDED]   /run/systemd/system/session-1.scope <E2><86><92> /run/systemd/system/session-1.scope.d/90-Slice.conf


Version-Release number of selected component (if applicable):
systemd-208-15.fc20.x86_64

How reproducible:
100%

Steps to Reproduce:
1. LC_ALL=C systemd-delta

Actual results:
Escaped unicode is sent to the terminal

Expected results:
Either only use ASCII characters (e.g. '->') or detect when the locale does not support unicode and do not emit non-ASCII characters in that case.

Additional info:

Comment 3 Ludek Smid 2014-06-26 10:54:49 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.

Comment 4 Ludek Smid 2014-06-26 11:15:04 UTC
The comment above is incorrect. The correct version is bellow.
I'm sorry for any inconvenience.
---------------------------------------------------------------

This request was NOT resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you need
to escalate this bug.

Comment 7 Branislav Blaškovič 2014-12-04 13:00:36 UTC
systemd-208-11.el7:

    # LC_ALL=C systemd-delta
    [REDIRECTED]   /etc/systemd/system/default.target <E2><86><92> /usr/lib/systemd/system/default.target
    [EXTENDED]   /run/systemd/system/session-3.scope <E2><86><92> /run/systemd/system/session-3.scope.d/90-SendSIGHUP.conf
    [EXTENDED]   /run/systemd/system/session-3.scope <E2><86><92> /run/systemd/system/session-3.scope.d/90-After-systemd-us
    [EXTENDED]   /run/systemd/system/session-3.scope <E2><86><92> /run/systemd/system/session-3.scope.d/90-After-systemd-lo
    [EXTENDED]   /run/systemd/system/session-3.scope <E2><86><92> /run/systemd/system/session-3.scope.d/90-Description.conf
    [EXTENDED]   /run/systemd/system/session-3.scope <E2><86><92> /run/systemd/system/session-3.scope.d/90-Slice.conf

    6 overridden configuration files found.

systemd-208-18.el7:
    # LC_ALL=C systemd-delta
    [REDIRECTED]   /etc/systemd/system/default.target -> /usr/lib/systemd/system/default.target
    [EXTENDED]   /run/systemd/system/session-3.scope -> /run/systemd/system/session-3.scope.d/90-SendSIGHUP.conf
    [EXTENDED]   /run/systemd/system/session-3.scope -> /run/systemd/system/session-3.scope.d/90-After-systemd-user-session
    [EXTENDED]   /run/systemd/system/session-3.scope -> /run/systemd/system/session-3.scope.d/90-After-systemd-logind\x2ese
    [EXTENDED]   /run/systemd/system/session-3.scope -> /run/systemd/system/session-3.scope.d/90-Description.conf
    [EXTENDED]   /run/systemd/system/session-3.scope -> /run/systemd/system/session-3.scope.d/90-Slice.conf

    6 overridden configuration files found.

Marking as VERIFIED.

Comment 9 errata-xmlrpc 2015-03-05 11:09:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0509.html