Skip to content

Commit

Permalink
opt: remove qtextcodec
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jan 4, 2025
1 parent 9735ccd commit 2b5be0c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/dict/epwing_book.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,12 @@ hook_narrow_jisx0208( EB_Book * book, EB_Appendix *, void * container, EB_Hook_C

if ( out_code == 0 ) {
EContainer * cont = static_cast< EContainer * >( container );
if ( cont->book->codec_Euc_name ) {
QByteArray str = Iconv::toQString( cont->book->codec_Euc_name, (const char *)buf, 2 ).toUtf8();
eb_write_text( book, str.data(), str.size() );
}
else
eb_write_text( book, (const char *)buf, 2 );
QByteArray str = Iconv::toQString( cont->book->codec_Euc_name, (const char *)buf, 2 ).toUtf8();
eb_write_text( book, str.data(), str.size() );
}
else
else {
eb_write_text_byte1( book, out_code );
}
}

return EB_SUCCESS;
Expand Down

0 comments on commit 2b5be0c

Please sign in to comment.