localcharset.h.diff 725 B

1234567891011121314151617181920212223
  1. Add a variant of `locale_charset' that returns its result based solely on
  2. information from the environment. See
  3. http://lists.gnu.org/archive/html/guile-devel/2011-11/msg00040.html for the
  4. rationale.
  5. diff --git a/lib/localcharset.h b/lib/localcharset.h
  6. index 8907ccd..43e976f 100644
  7. --- a/lib/localcharset.h
  8. +++ b/lib/localcharset.h
  9. @@ -32,6 +32,12 @@ extern "C" {
  10. name. */
  11. extern const char * locale_charset (void);
  12. +/* Same as above, but only look at environment variables, avoiding calls to
  13. + `setlocale', `nl_langinfo', etc. See
  14. + <http://lists.gnu.org/archive/html/guile-devel/2011-11/msg00040.html> for
  15. + the rationale. */
  16. +extern const char * environ_locale_charset (void);
  17. +
  18. #ifdef __cplusplus
  19. }