-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Strings are one character short with version 3.2.5 through 4.0.0 #116
Comments
See #111 Basically a regression was introduced when fixing another issue. Your options are:
|
Thanks for the quick response, @nemtrif, very much appreciated 🙏 I'd like to suggest to add a notice or warning to each the affected releases on its GitHub release page. Maybe something along the lines of:
|
No problem. My assumption they are using unchecked namespace to avoid exceptions. If so, you should better upgrade to 4.0.3. Or, just stay on a pre-3.2.5 release. 3.2.4 is OK. |
Ledger will update to utfcpp 4.0.3 (ledger/ledger#2315 is pending review), yet some distributions, like Debian, prefer programs to link to libutfcpp rather than embed it. In the case where a distro ships libutfcpp 3.2.5 a sensible path forward is to apply a patch replacing uses of Your comments have been very helpful! 💯🙏 |
When compiling ledger with utfcpp version 3.2.5 until 4.0.0 (4.0.1 fixes the issue) there is an issue where a string passed from ledger's Python module to its C++ native code is shortened by one character (see
ledger/ledger#2302
for details).In ledger's test suite this results in data files not being found as their filepath is truncated, e.g.
test/regress/4D9288AE.dat
becomestest/regress/4D9288AE.da
.Currently the ledger project is trying to figure out the best way forward and any insight folks more familiar with utfcpp can provide would be greatly appreciated.
A few thoughts / questions:
The text was updated successfully, but these errors were encountered: