X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fi18n.h;h=c167e1f99b2ce63ebfd109494e08951b1ac17a9f;hb=90f346cc015bb89d28c93e35ba2e23d6671e14f2;hp=db15bad86940a955f0a0a942af548a8a7b177edb;hpb=8af88c0b7ea2fe75df7e45497988ed0371006a86;p=pspp diff --git a/src/libpspp/i18n.h b/src/libpspp/i18n.h index db15bad869..c167e1f99b 100644 --- a/src/libpspp/i18n.h +++ b/src/libpspp/i18n.h @@ -17,23 +17,14 @@ #ifndef I18N_H #define I18N_H -const char * get_pspp_locale (void); -void set_pspp_locale (const char *locale); -const char * get_pspp_charset (void); - void i18n_done (void); void i18n_init (void); -enum conv_id - { - CONV_PSPP_TO_UTF8, - CONV_SYSTEM_TO_PSPP, - CONV_UTF8_TO_PSPP, - n_CONV - }; +#define UTF8 "UTF-8" -char * recode_string (enum conv_id how, const char *text, int len); +char * recode_string (const char *to, const char *from, + const char *text, int len); /* Return the decimal separator according to the