On Mon, Jan 19, 2009 at 03:35:24PM +0100, Evgeni Golov wrote: > Hi, > logper.nec and the .nec files provided in the nec package as examples > run fine here on sid/i386. > Could you share a file that is producing errors and some detailed steps > to reproduce (when that is more then just opening the file with > xnecview)? Ok, it's a locale problem related to the defintion of the decimal-point char. In both i386 and adm64 boxes my LC_* definition is es_AR.UTF-8. Changing that to LC_ALL="C" makes xnecview work. In es_AR.UTF-8 the decimal-point char is ',' (comma) not '.' (point/period).
I think that calling setlocale(LC_ALL, "C") before sscanf may do the trick, because regardless of the locale settings of the user, all .nec files will be using '.' as decimal-point char always. Thanks, best regards -- Fernando M. Maresca - - - - - - - - - - - - - Cel: 221 15 545 8196 Tel: 221 450 5378
signature.asc
Description: Digital signature