dump file may be unreadable by bufr_encoder when LC_ALL is defined

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

Bug Description

When internationalisation is in use, i.e. defining LC_ALL to other language than english. The dump file will
contains printed values that are also internationalized, i.e. all fractions are formatted differently.
For example, in english 1.234 but in french, it would be 1,234, etc...
Currently, the character "," is used as a delimiter in the parser, with some modifications, it is possible to read back
printed string if LC_ALL is defined to use the same language.
However that will still break the encoder if dump file were not created in the same language as the encoder,
and this will make things really complicated.

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

Solution is to force all dump file to be created in english only and to force re-encoding in english also.
Changes were done throught bufr_decoder.c and bufr_encoder.c by setting LC_ALL=en_US before enabling internationalisation.
commited to trunk rev.149 and to branch 0.8.2 rev.108

Changed in libecbufr:
status: Confirmed → Fix Committed
milestone: none → 0.8.2b6
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.