mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 13:35:43 +00:00
[PR #1733] [MERGED] fix: unicode encoding regression #2452
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?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1733
Author: @hrideshmg
Created: 8/19/2025
Status: ✅ Merged
Merged: 8/24/2025
Merged by: @prateekmedia
Base:
master← Head:unicode_fix📝 Commits (1)
1ce23abfix: unicode encoding regression📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/rust/lib_ccxr/src/util/encoding.rs(+2 -2)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
CCextractor does not currently produce the correct output when we try to encode the subtitles in unicode (by passing
--unicode). This is a regression currently reported by the sample platform under the options category.The problem seems to be caused by order differences between the C and Rust enums. The C enum has the unicode entry at position 0 but the Rust enum has it at position 3.
I'm not exactly sure why this fixes the issue because we are using explicit match by value statements when converting between Rust and C so this shouldn't make a difference but it does yield the correct output nonetheless. I'm guessing its some bindgen quirk.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.