ghaerr / ghaerr/microwindows

add iconv to suport multi-language

Open
#14 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
858
Forks
112
Avg merge
1d 13h
Merged PRs (30d)
4

Description

Hi,guys,
the function
int GdConvertEncoding

(const void *istr, MWTEXTFLAGS iflags, int cc, void *ostr,
MWTEXTFLAGS oflags)
int the file devfont.c can not convert a multi-language UTF8 string to UTF-16 string but ASCII.
so I add the iconv lib to make this function can convert multi-language UTF8 string to a right way.
maybe someone need it. by the way in config need add libiconv and libcharset

devfont.c

devfont.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in devfont.c at GdConvertEncoding and compare its current UTF-8 to UTF-16 behavior with the attached devfont.zip. Check the project configuration for where libiconv and libcharset would be added. Done means multi-language UTF-8 strings convert correctly to UTF-16, not only ASCII, with the required libraries configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.