Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String tools: make WidenString and NarrowString work with multibyte characters #642

Closed
wants to merge 2 commits into from

Conversation

WangHoi
Copy link
Contributor

@WangHoi WangHoi commented Jan 2, 2025

I found this little bug when open files which has CJK characters.

Support implement Diligent's class interface in other namespaces
@WangHoi
Copy link
Contributor Author

WangHoi commented Jan 2, 2025

Sorry, need to split ObjectBase for another PR.
Can you help edit and delete the ObjectBase commit.

btw, the failed test seems not related to this PR.

@WangHoi
Copy link
Contributor Author

WangHoi commented Jan 2, 2025

Try to rework the PR

@WangHoi WangHoi closed this Jan 2, 2025
NarrowStr[i] = ctfacet.narrow(WideStr[i], 0);
{
char mb[4];
int n = wctomb(mb, WideStr[i]);

Check warning

Code scanning / PREfast

Buffer overrun while writing to 'mb'. Warning

Buffer overrun while writing to 'mb'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant