| 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 |
|
| 6 |
diff --git a/lib/localcharset.h b/lib/localcharset.h |
| 7 |
index 8907ccd..43e976f 100644 |
| 8 |
--- a/lib/localcharset.h |
| 9 |
+++ b/lib/localcharset.h |
| 10 |
@@ -32,6 +32,12 @@ extern "C" { |
| 11 |
name. */ |
| 12 |
extern const char * locale_charset (void); |
| 13 |
|
| 14 |
+/* Same as above, but only look at environment variables, avoiding calls to |
| 15 |
+ `setlocale', `nl_langinfo', etc. See |
| 16 |
+ <http://lists.gnu.org/archive/html/guile-devel/2011-11/msg00040.html> for |
| 17 |
+ the rationale. */ |
| 18 |
+extern const char * environ_locale_charset (void); |
| 19 |
+ |
| 20 |
|
| 21 |
#ifdef __cplusplus |
| 22 |
} |