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

make cimbar.exe work properly #121

Merged
merged 2 commits into from
Mar 16, 2025
Merged

make cimbar.exe work properly #121

merged 2 commits into from
Mar 16, 2025

Conversation

wyjss
Copy link
Contributor

@wyjss wyjss commented Mar 1, 2025

fix compilation errors in the MSVC c++ environment and ensure the fountain mode codec works correctly.

@@ -1453,7 +1453,11 @@ template <typename WChar, typename Buffer = memory_buffer> class to_utf8 {
++p;
if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) {
if (policy == to_utf8_error_policy::abort) return false;
#ifdef _WIN32
buf.append(string_view("\xef\xbf\xbd"));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, this is not a change we can make here. Everything in third_party_lib is vendored from an upstream repo -- i.e. this file is fmt 10.1.0 verbatim.

It's worth noting that we're overdue for a dependency bump here (https://github.com/fmtlib/fmt is up to 11.1.4), but I'm not sure if that'll make this change or harder.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, I have undone the non-conforming modifications. This issue exists only in fmt version 10.1.0.

@sz3
Copy link
Owner

sz3 commented Mar 2, 2025

Thanks for taking a swing at this -- not sure I can take it as is because of the fmtlib change, but it's useful regardless.

@sz3 sz3 merged commit 2156501 into sz3:master Mar 16, 2025
4 checks passed
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.

2 participants