My personal website is @ https://alexanderschroeder.net/
ilyvion / encoding-next Goto Github PK
View Code? Open in Web Editor NEWCharacter encoding support for Rust
License: MIT License
Character encoding support for Rust
License: MIT License
My personal website is @ https://alexanderschroeder.net/
Currently, indexes are parsed and massaged by a Python script, which unnecessary when we're already using Rust for everything else. I'd like to remove the dependency on Python by moving said code to Rust.
The codec::tradchinese::bigfive2003_tests::test_encoder_valid
and big5::tests::test_correct_table
tests fail when the no-optimized-legacy-encoding
feature is enabled, which suggests that there's something wrong with the big5 encoding (or tests) when using the legacy encoding.
features: [no-optimized-legacy-encoding]
cause:
thread 'codec::tradchinese::bigfive2003_tests::test_encoder_valid' panicked at 'raw_feed should push [249, 249], but instead pushed [162, 164]'
stack backtrace:
0: rust_begin_unwind
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/core/src/panicking.rs:142:14
2: encoding::codec::tradchinese::bigfive2003_tests::test_encoder_valid
at ./src/codec/tradchinese.rs:204:9
3: encoding::codec::tradchinese::bigfive2003_tests::test_encoder_valid::{{closure}}
at ./src/codec/tradchinese.rs:191:5
4: core::ops::function::FnOnce::call_once
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/core/src/ops/function.rs:248:5
5: core::ops::function::FnOnce::call_once
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/core/src/ops/function.rs:248:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
features: [no-optimized-legacy-encoding]
cause:
thread 'big5::tests::test_correct_table' panicked at 'assertion failed: `(left == right)`
left: `5248`,
right: `18975`'
stack backtrace:
0: rust_begin_unwind
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/core/src/panicking.rs:142:14
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/core/src/panicking.rs:181:5
4: encoding_index_tradchinese::big5::tests::test_correct_table
at /home/runner/work/encoding-next/encoding-next/encoding_index_tests/index_tests.rs:83:34
5: encoding_index_tradchinese::big5::tests::test_correct_table::{{closure}}
at /home/runner/work/encoding-next/encoding-next/encoding_index_tests/index_tests.rs:78:9
6: core::ops::function::FnOnce::call_once
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/core/src/ops/function.rs:248:5
7: core::ops::function::FnOnce::call_once
at /rustc/f2d93935ffba3ab9d7ccb5300771a2d29b4c8bf3/library/core/src/ops/function.rs:248:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.