Replace the Rust URL form-encoding callback bridge into C++ TextCodec with a direct encoding_rs encoder. This keeps percent-encode-after-encoding entirely in Rust and removes liburl_rust's dependency on LibTextCodec. It also happens to fix ISO-2022-JP URL encoding of literal U+FFFD. The LibTextCodec reverse lookup treats generated 0xFFFD table holes as real JIS0208 mappings, so literal U+FFFD skipped the encoder-error path. encoding_rs treats U+FFFD as unmappable, so URL encoding emits the required numeric character reference.
17 lines
No EOL
504 B
Text
17 lines
No EOL
504 B
Text
Harness status: OK
|
|
|
|
Found 12 tests
|
|
|
|
12 Pass
|
|
Pass iso-2022-jp encoder: very basic
|
|
Pass iso-2022-jp encoder: basics
|
|
Pass iso-2022-jp encoder: Katakana
|
|
Pass iso-2022-jp encoder: jis0208
|
|
Pass iso-2022-jp encoder: SO/SI ESC
|
|
Pass iso-2022-jp encoder: Roman SO/SI ESC
|
|
Pass iso-2022-jp encoder: Katakana SO/SI ESC
|
|
Pass iso-2022-jp encoder: jis0208 SO/SI ESC
|
|
Pass iso-2022-jp encoder: U+FFFD
|
|
Pass iso-2022-jp encoder: Roman U+FFFD
|
|
Pass iso-2022-jp encoder: Katakana U+FFFD
|
|
Pass iso-2022-jp encoder: jis0208 U+FFFD |