diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-22 17:27:05 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-22 17:27:05 +0000 |
| commit | 55cf0a663723f6334b94de297776756b487c2cdf (patch) | |
| tree | 0ce89f99734e930c9324211811c6ecef915bebe3 /halibut.h | |
| parent | 2dfa498f92369018c3bbc1527df8cce5778fc6ae (diff) | |
| download | halibut-55cf0a663723f6334b94de297776756b487c2cdf.zip halibut-55cf0a663723f6334b94de297776756b487c2cdf.tar.gz halibut-55cf0a663723f6334b94de297776756b487c2cdf.tar.bz2 halibut-55cf0a663723f6334b94de297776756b487c2cdf.tar.xz | |
Support the locale-supplied character set where appropriate. It's
used for converting command-line -C directives into Unicode; it's
used for outputting Unicode strings to stderr in error messages; and
it's used as the default character set for input files (although I'd
be inclined to recommend everyone use \cfg{input-charset} in all
their source files to ensure their portability).
[originally from svn r4114]
Diffstat (limited to '')
| -rw-r--r-- | halibut.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -27,12 +27,6 @@ #include "tree234.h" /* - * FIXME: Charset temporary workarounds - */ -#define CS_FIXME CS_ISO8859_1 -#define CS_LOCAL CS_ISO8859_1 - -/* * Structure tags */ typedef struct input_Tag input; @@ -282,6 +276,8 @@ char *utoa_dup(wchar_t const *s, int charset); char *utoa_dup_len(wchar_t const *s, int charset, int *len); char *utoa_careful_dup(wchar_t const *s, int charset); wchar_t *ufroma_dup(char const *s, int charset); +char *utoa_locale_dup(wchar_t const *s); +wchar_t *ufroma_locale_dup(char const *s); int ustrlen(wchar_t const *s); wchar_t *uadv(wchar_t *s); wchar_t *ustrcpy(wchar_t *dest, wchar_t const *source); |