projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix an array-size bug in modmul, and add some tests for it.
[u/mdw/putty]
/
charset
/
charset.h
diff --git
a/charset/charset.h
b/charset/charset.h
index
0a2e919
..
bc5ae3a
100644
(file)
--- a/
charset/charset.h
+++ b/
charset/charset.h
@@
-32,6
+32,8
@@
typedef enum {
CS_ISO8859_16,
CS_CP437,
CS_CP850,
CS_ISO8859_16,
CS_CP437,
CS_CP850,
+ CS_CP852,
+ CS_CP866,
CS_CP1250,
CS_CP1251,
CS_CP1252,
CS_CP1250,
CS_CP1251,
CS_CP1252,
@@
-97,7
+99,8
@@
typedef struct {
* U+FFFD (REPLACEMENT CHARACTER).
*/
* U+FFFD (REPLACEMENT CHARACTER).
*/
-int charset_to_unicode(char **input, int *inlen, wchar_t *output, int outlen,
+int charset_to_unicode(const char **input, int *inlen,
+ wchar_t *output, int outlen,
int charset, charset_state *state,
const wchar_t *errstr, int errlen);
int charset, charset_state *state,
const wchar_t *errstr, int errlen);
@@
-120,7
+123,8
@@
int charset_to_unicode(char **input, int *inlen, wchar_t *output, int outlen,
* output charset).
*/
* output charset).
*/
-int charset_from_unicode(wchar_t **input, int *inlen, char *output, int outlen,
+int charset_from_unicode(const wchar_t **input, int *inlen,
+ char *output, int outlen,
int charset, charset_state *state,
const char *errstr, int errlen);
int charset, charset_state *state,
const char *errstr, int errlen);