X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=blobdiff_plain;f=src%2Flibpspp%2Fi18n.c;h=e08ba2804bbf4d6b0dbe7c6cf81b820c7a239462;hp=d443619ac5bc9e6deb39860099dc788d53ab5e6d;hb=1221be814f2f1d67c49849512e0938b059a58009;hpb=2764b3157e26955a31af5f4aa7d14e27098ddf19 diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index d443619a..e08ba280 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -94,7 +94,8 @@ recode_string (const char *to, const char *from, } -/* Return a string based on TEXT converted according to HOW. +/* Return a string based on TEXT which must be encoded using FROM. + The returned string will be encoded in TO. If length is not -1, then it must be the number of bytes in TEXT. The returned string must be freed when no longer required. */ @@ -119,7 +120,6 @@ recode_string_pool (const char *to, const char *from, if ( length == -1 ) length = strlen(text); - if (to == NULL) to = default_encoding;