mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[BUG] CEA-708 hangs forever if character set is specified on rust builds #835
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hrideshmg on GitHub (Apr 29, 2025).
Can be verified by running this sample using the following arguments:
--service 1[EUC-KR].It works as expected on a build of ccextractor built
-without-rustbut hangs forever otherwise. This is currently causing the sample platform tests to abort from a timeout as evidenced by this run taking more than 3 hours:@hrideshmg commented on GitHub (May 1, 2025):
I've managed to debug this issue after messing around with gdb a bit, it seems to be caused by the iconv crate (which is currently unmaintained) being broken on the latest version of rust, see this issue.
I've managed to fix it by swapping out the iconv crate for encoding_rs (which appears to be the most popular and well maintained option) in this PR.
Note that the rust implementation for this particular case was and still is buggy, regression tests 142, 147 and 149 all of which test this specific scenario have historically had empty output files (see here for eg), which is why the tests were passing. The C builds however, produce the proper outputs.
@rboy1 commented on GitHub (Aug 4, 2025):
@canihavesomecoffee any chance we get a new release of ccextractor, been almost 5 years :)
Also is it possible to update the build instructions to cross compile the windows build using ubuntu ? TIA