From 8f420b9272e526097a73ad10ce74ce3edbb67b9e Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 22 May 2016 19:00:13 -0700 Subject: 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. --- src/utf8.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/utf8.h') 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_ */ -- cgit v1.2.3