<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5723</bug_id>
          
          <creation_ts>2014-01-14 08:14:37 +0000</creation_ts>
          <short_desc>Some strange characters in log when using journalctl to query the log</short_desc>
          <delta_ts>2014-11-11 02:05:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>System Startup</product>
          <component>system-startup</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39781</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-01-14 08:14:37 +0000</bug_when>
    <thetext>git rev: master/1b636173ca88e5ccca1992f9a12367a1189fa674

Steps:
1. Add the following lines in conf/local.conf
DISTRO_FEATURES_append = &quot; systemd&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;
DISTRO_FEATURES_BACKFILL_CONSIDERED = &quot;sysvinit&quot;

2. bitbake core-image-sato

When using journalctl to query the log, there are some strange characters in the log:
#############################################
Jan 14 07:59:34 qemux86 kernel: ACPI: Local APIC address 0xfee00000
Jan 14 07:59:34 qemux86 kernel: [[1;39m0MB HIGHMEM available.[[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39m255MB LOWMEM available.[[0m
Jan 14 07:59:34 qemux86 kernel:   mapped low ram: 0 - 0fffe000
Jan 14 07:59:34 qemux86 kernel:   low ram: 0 - 0fffe000
Jan 14 07:59:34 qemux86 kernel: BRK [0x01c15000, 0x01c15fff] PGTABLE
Jan 14 07:59:34 qemux86 kernel: [[1;39mZone ranges:[[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39m  DMA      [mem 0x00001000-0x00ffffff][[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39m  Normal   [mem 0x01000000-0x0fffdfff][[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39m  HighMem  empty[[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39mMovable zone start for each node[[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39mEarly memory node ranges[[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39m  node   0: [mem 0x00001000-0x0009efff][[0m
Jan 14 07:59:34 qemux86 kernel: [[1;39m  node   0: [mem 0x00100000-0x0fffdfff][[0m
Jan 14 07:59:34 qemux86 kernel: On node 0 totalpages: 65436
###############################################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39881</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-01-17 02:10:38 +0000</bug_when>
    <thetext>The `less&apos; command from busybox doesn&apos;t interpret these characters.
Installing the less package into the image will solve this problem.

As journal is a key functionality of systemd, I think we&apos;d better add the &apos;less&apos; package to the RDEPENDS of systemd.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40273</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-10 12:53:02 +0000</bug_when>
    <thetext>Adding less as a dependency of systemd is a bit of a hack.

I believe busybox implemented some better handling of this?

I&apos;d really prefer to see:

a) busybox handling of the escape sequences handled (backport the patch?)
and/or
b) systemd learning not to use the sequences on things that aren&apos;t terminals</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46911</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-11-11 02:05:20 +0000</bug_when>
    <thetext>It&apos;s not a big problem. &apos;--no-pager&apos; can almost always work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>