Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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 ***