aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utf8.h
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-05-22 19:00:13 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-26 20:24:03 -0700
commit8f420b9272e526097a73ad10ce74ce3edbb67b9e (patch)
tree40dcaa9009a9c7057ae0b38e67f3f26c4bacb3d7 /src/utf8.h
parentd55b226f191749282daba2c8c96315df993ecc3b (diff)
Fix wide char related tests on Cygwin
This makes the wide char tests run by `./fish_tests` pass on systems where sizeof wchar_t is two (e.g., Cygwin). In doing so it corrects several problems with the underlying code in module *utf8.cpp* such as allowing five and six byte UTF-8 sequences. They were allowed by the original Unicode proposal but are not allowed by the adopted standard.
Diffstat (limited to 'src/utf8.h')
-rw-r--r--src/utf8.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/utf8.h b/src/utf8.h
index 99a12a8e..3879459b 100644
--- a/src/utf8.h
+++ b/src/utf8.h
@@ -33,6 +33,4 @@ bool wchar_to_utf8_string(const std::wstring &input, std::string *result);
size_t utf8_to_wchar(const char *in, size_t insize, std::wstring *out, int flags);
size_t wchar_to_utf8(const wchar_t *in, size_t insize, char *out, size_t outsize, int flags);
-bool is_wchar_ucs2();
-
#endif /* !_UTF8_H_ */