← Back to team overview

kicad-developers team mailing list archive

I18n infos

 

When creating or reading ascii files using some data in floating point format, the i18n used in wxWidgets and kicad creates problems: in some countries (France, Germany...) float values like 1.0 are written 1,0 So ascii files using float data cannot be properly created (can be read only in contries which have the same notation).

To avoid this problem the functions which create (or read) files **must** have 2 lines before and after reading or writing files,
something like:

// Open file

setlocale( LC_NUMERIC, "C" ); // Switch the locale to standard C (needed to print floating point numbers like 1.3)

// Write or Read data

setlocale( LC_NUMERIC, "" ); // revert to the current locale

// Close file

setlocale( LC_NUMERIC, "C" ) ensure the minimum compatibility while reading or writing ascii files whatever the internationalization


Of course, this problem can be see only in some countries.

So, Dick, can you add these lines in the specctra import and export file functions.

Thanks,


--
Jean-Pierre CHARRAS
Maître de conférences
Directeur d'études 2ieme année.
Génie Electrique et Informatique Industrielle 2
Institut Universitaire de Technologie 1 de Grenoble
BP 67, 38402 St Martin d'Heres Cedex

Recherche :
Grenoble Image Parole Signal Automatique (GIPSA - INPG)
46, Avenue Félix Viallet
38031 Grenoble Cedex






Follow ups