| Top |
| void | gretl_push_c_numeric_locale () |
| void | gretl_pop_c_numeric_locale () |
| int | doing_nls () |
| int | reset_local_decpoint () |
| int | get_local_decpoint () |
| char * | iso_to_ascii () |
| char * | u8_to_ascii_convert () |
| char * | asciify_utf8_varname () |
| const char * | lang_string_from_id () |
| char * | utf8_to_rtf () |
| int | iso_latin_version () |
| int | lang_id_from_name () |
| int | lang_id_from_code () |
| void | set_alt_gettext_mode () |
| void | set_lcnumeric () |
| int | gretl_is_ascii () |
| int | force_language () |
| int | test_locale () |
| int | gretl_recode_file () |
| int | chinese_locale () |
| int | japanese_locale () |
| int | east_asian_locale () |
| int | get_utf_width () |
| char * | iso_gettext () |
| char * | alt_gettext () |
| void | set_gretl_charset () |
| void | set_native_utf8 () |
| char * | sprint_l2_to_ascii () |
| int | get_translated_width () |
| #define | UTF_WIDTH() |
| #define | TRANSLATED_WIDTH() |
| #define | gettext() |
void
gretl_push_c_numeric_locale (void);
Saves the current LC_NUMERIC locale and sets it to "C".
This way you can safely read/write floating point numbers all in the
same format, using '.' as the decimal character. You should make sure
that code between gretl_push_c_numeric_locale() and gretl_pop_c_numeric_locale()
doesn't do any setlocale calls, or locale may end up in a strange setting.
Also make sure to always pop the C numeric locale after you've pushed it.
The calls can be nested.
void
gretl_pop_c_numeric_locale (void);
Restores the LC_NUMERIC locale to what it was
before the matching gretl_push_c_numeric_locale(). If these calls
were nested, then this is a no-op until we get to the most outermost
layer. Code in between these should not do any setlocale calls
to change the LC_NUMERIC locale or things may come out very strange.
int
reset_local_decpoint (void);
Uses localeconv() to determine the representation of the decimal
point in the current locale.
char * u8_to_ascii_convert (char *targ,const char *src,int maxlen,char sub);
int gretl_recode_file (const char *path1,const char *path2,const char *from_set,const char *to_set,PRN *prn);