Bug 1872609

Summary: growpart doesn't work when LANG=cs_CZ.UTF-8
Product: Red Hat Enterprise Linux 7 Reporter: Daniel Horák <dahorak>
Component: cloud-utils-growpartAssignee: Eduardo Otubo <eterrell>
Status: CLOSED DEFERRED QA Contact: xiachen
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: eterrell, huzhao, ribarry, yacao, yuxisun
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1885992 (view as bug list) Environment:
Last Closed: 2020-10-07 12:21:46 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:    
Bug Blocks: 1885992    

Description Daniel Horák 2020-08-26 07:59:00 UTC
Description of problem:
  growpart command doesn't work properly, when env variable LANG is not set to en_US.UTF-8


Version-Release number of selected component (if applicable):
  cloud-utils-growpart-0.29-5.el7.noarch
  util-linux-2.23.2-63.el7.x86_64


How reproducible:
  100%


Steps to Reproduce:
1. Set LANG env variable to something different than en_US (tested with cs_CZ.UTF-8):
  # export LANG=cs_CZ.UTF-8
2. Run growpart command:
  # growpart /dev/xvda 2 -v -N


Actual results:
  # growpart /dev/xvda 2 -v -N
    unexpected output in sfdisk --version [sfdisk z util-linux 2.23.2]


Expected results:
  growpart should work correctly independently on LANG configuration


Additional info:
  Workaround is of course simple:
  # LANG=en_US.UTF-8 growpart /dev/xvda 2 -v -N