Bug 1398265

Summary: sar can not display time under ko_KR.UTF-8
Product: Red Hat Enterprise Linux 6 Reporter: Sukmoon Lee <smlee>
Component: sysstatAssignee: Michal Sekletar <msekleta>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.9   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-22 13:15:11 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:
Attachments:
Description Flags
sysstat patch file none

Description Sukmoon Lee 2016-11-24 11:17:22 UTC
Created attachment 1223765 [details]
sysstat patch file

Description of problem:

O sar is not display time information under ko_KR.UTF-8 environment.

[root@smlee:/root] $ echo $LANG
ko_KR.UTF-8
[root@smlee:/root] $ sar 1 5
Linux 2.6.32-642.6.2.el6.x86_64 (smlee)         2016년 11월 24일        _x86_64_(2 CPU)

                CPU     %user     %nice   %system   %iowait    %steal     %idle
                all      0.00      0.00      0.50      0.00      0.00     99.50
                all      0.50      0.00      0.00      0.50      0.00     99.00
                all      0.00      0.00      0.47      0.00      0.00     99.53
                all      0.00      0.00      0.50      0.00      0.00     99.50
                all      0.00      0.00      0.00      0.00      0.00    100.00
Average:        all      0.10      0.00      0.30      0.10      0.00     99.51
[root@smlee:/root] $ LANG=en_US.UTF-8
[root@smlee:/root] $ sar 1 5
Linux 2.6.32-642.6.2.el6.x86_64 (smlee)         11/24/2016      _x86_64_       (2 CPU)

08:02:18 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
08:02:19 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
08:02:20 PM     all      0.00      0.00      0.50      0.00      0.00     99.50
08:02:21 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
08:02:22 PM     all      0.50      0.00      0.00      0.00      0.00     99.50
08:02:23 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
Average:        all      0.10      0.00      0.10      0.00      0.00     99.80
[root@smlee:/root] $



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

  RHEL 6 and RHEL 7 is not working.
  I am test sysstat-9.0.4-31.el6.x86_64


How reproducible:

  Yes. set LANG=ko_KR.UTF-8, and run sar

Steps to Reproduce:
1. LANG=ko_KR.UTF-8
2. sar 1 5
3.

Actual results:

 not display time information

Expected results:


Additional info:

 I received source rpm.
 And change buffer length using strftime(). So I confirmed that is work well.
 I attachment patch file.



[root@smlee:/root/rpmbuild/SPECS] $ diff -Nur sysstat.spec sysstat.spec.new
--- sysstat.spec        2016-03-08 21:57:01.000000000 +0900
+++ sysstat.spec.new    2016-11-24 20:11:41.104557905 +0900
@@ -80,6 +80,8 @@
 Patch37: sysstat-9.0.4-elapsed-time.patch
 # fixes 1308862
 Patch38: sysstat-9.0.4-max-name-len.patch
+#
+Patch39: sysstat-9.0.4-timestamp-len.patch

 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

@@ -134,6 +136,7 @@
 %patch36 -p1 -b .rw-await
 %patch37 -p1 -b .elapsed-time
 %patch38 -p1 -b .max-name-len
+%patch39 -p1 -b .timestamp-len
 iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux
 mv CREDITS.aux CREDITS

Comment 3 Michal Sekletar 2016-12-22 13:15:11 UTC

*** This bug has been marked as a duplicate of bug 1363947 ***