emscripten-core / emscripten-core/emscripten
Encoding conversion with iconv failed.
- Ngôn ngữ chính
- C++
- Star
- 27.6k
- Fork
- 3.6k
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 125
Mô tả
Please include the following in your bug report:
**Version of emscripten/emsdk:**
v3.1.0
I use "iconv_open("GB18030", "UTF-8"));"
`iconv_t iconv_open(const char *to, const char *from)
{
size_t f, t;
struct stateful_cd *scd;
if ((t = find_charmap(to))==-1
|| (f = find_charmap(from))==-1
|| (charmaps[t] >= 0330)) {
errno = EINVAL;
return (iconv_t)-1;
}`
Why do have this judgment: (charmaps[t] >= 0330), so I cant't convert to GB18030.
Is it not support?
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the iconv_open entry point and the reported `(charmaps[t] >= 0330)` check in Emscripten's iconv implementation. Inspect how supported charmaps are defined and how GB18030 is handled; done means establishing whether GB18030 should be supported and resolving or documenting the reported conversion failure.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp, wasm
- Lĩnh vực
- internationalization
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100