Skip to content

Commas in PaChrVob.txt as decimal separator crashes rvgest

Vignette in rvgest raises this error:

Run VGEST for configuration:  PARIS_05 Q_OBS_OBS.txt low 81 ... Store files to C:\Users\DAVID~1.DOR\AppData\Local\Temp\Rtmp02hykU/database/PARIS_05/low_81 - OK
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  : 
  line 46 did not have 8 elements

The incriminated lines is this one:

image

It's due to the fact that the Pascal function FloatToStr introduced in commit fabc0429 uses locales. If the compilation is done on a French computer, FloatToStr uses commas as decimal separator. (See https://wiki.freepascal.org/DecimalSeparator)