trailing zeroes removed from printed values

Bug #1450801 reported by vanh souvanlasy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libECBUFR
Fix Committed
High
vanh souvanlasy

Bug Description

The removal of trailing zeroes from printed values are not always desired. As it is done in currently.
In older version, all trailing zeroes are kept, which differs from current behavior.
The removal of trailing zeroes in printed values should be made optional.

Changed in libecbufr:
assignee: nobody → vanh souvanlasy (vanh-souvanlasy)
importance: Undecided → High
status: New → In Progress
Revision history for this message
vanh souvanlasy (vanh-souvanlasy) wrote :

fix has been committed to branch 0.8.6 rev. 290
to deactivate removal of trailing zeroes in printed values, call : bufr_set_trimzero( 0 )
in bufr_decoder, a new option has been added, -keep_zero which will make a call to the above function prior to decode and print values.

Revision history for this message
vanh souvanlasy (vanh-souvanlasy) wrote :

fix also committed to trunk rev 311

Changed in libecbufr:
status: In Progress → Fix Committed
Revision history for this message
vanh souvanlasy (vanh-souvanlasy) wrote :

OK, I think I got it, it has to do with scaling of the descriptor. Not simply removing or not trailing zeroes.
Before (0.8.2) with floating point, values were printed according to its scaling, but now with, when everything got switched to double, it is not anymore.

Revision history for this message
vanh souvanlasy (vanh-souvanlasy) wrote :

fix has been committed rev. 291 rev.292 rev.293 for printing values using scaling in double.

Revision history for this message
vanh souvanlasy (vanh-souvanlasy) wrote :

fix committed to trunk rev.312, also committed to 0.8.6 with previous rev.291-293

Revision history for this message
jansenq (quinton-jansen) wrote : RE: [Bug 1450801] Re: trailing zeroes removed from printed values

Looks like the latest patch restored the previous functionality.

-----Original Message-----
From: <email address hidden> on behalf of vanh souvanlasy
Sent: Fri 01/05/2015 13:27
To: Jansen,Quinton [PYR]
Subject: [Bug 1450801] Re: trailing zeroes removed from printed values

fix committed to trunk rev.312, also committed to 0.8.6 with
previous rev.291-293

--
You received this bug notification because you are subscribed to
libECBUFR.
https://bugs.launchpad.net/bugs/1450801

Title:
  trailing zeroes removed from printed values

To manage notifications about this bug go to:
https://bugs.launchpad.net/libecbufr/+bug/1450801/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.