/bin/dib-run-parts fails for spanish locale

Bug #1335932 reported by Yolanda Robla on 2014-06-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Medium
Yolanda Robla

Bug Description

Had this failure related to printf formatting and locale on /bin/dib-run-parts script:

Target: root.d

Script Seconds
--------------------------------------- ----------

.../diskimage-builder/bin/dib-run-parts: line 104: printf: 0.02818775177: number not valid

Manually changing number from 0.02818775177 to 0,02818775177 generated a valid formatted string. So looks like printf needs to be forced to use the english locale there, or number needs to be properly formatted using native locale.

Changed in diskimage-builder:
assignee: nobody → Yolanda Robla (yolanda.robla)

Fix proposed to branch: master
Review: https://review.openstack.org/103805

Changed in diskimage-builder:
status: New → In Progress

Reviewed: https://review.openstack.org/103805
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=8ed645f0469182b46d5eaa036a7eebdaae6406ee
Submitter: Jenkins
Branch: master

commit 8ed645f0469182b46d5eaa036a7eebdaae6406ee
Author: Yolanda Robla <email address hidden>
Date: Tue Jul 1 10:47:00 2014 +0200

    Set LC_ALL=C into dib-run-parts env

    Force LC_ALL to C to allow printf to work independently
    from the locale. Gives invalid number error if run in non-english
    locale.

    Change-Id: Ia68853505485fefbf0890313456e7edb6097666b
    Closes-Bug: #1335932

Changed in diskimage-builder:
status: In Progress → Fix Committed
Changed in diskimage-builder:
importance: Undecided → Medium
Jay Dobies (jdob) on 2014-07-08
Changed in diskimage-builder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers