aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/diagnose_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-26 00:38:03 +0900
committernsfisis <nsfisis@gmail.com>2026-07-26 00:38:03 +0900
commit8143e9c383e36f600680e1a28c833df7bd5bd60b (patch)
tree966e5789b441a72eb65166037184820750a06871 /crates/shirabe/src/command/diagnose_command.rs
parent1bbf06f5c852ed73d73b0dd1b86cd85661e0a610 (diff)
downloadphp-shirabe-8143e9c383e36f600680e1a28c833df7bd5bd60b.tar.gz
php-shirabe-8143e9c383e36f600680e1a28c833df7bd5bd60b.tar.zst
php-shirabe-8143e9c383e36f600680e1a28c833df7bd5bd60b.zip
fix(symfony-string): convert between ASCII and UTF-8 instead of panicking
mb_detect_encoding reports "ASCII" for pure ASCII input, so the conversion paths of toCodePointString/toByteString are reachable: the formatter's addLineBreaks feeds the detected encoding straight back into them. Port PHP's mb_convert_encoding calls, which the shim already handles for ASCII/UTF-8. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/diagnose_command.rs')
0 files changed, 0 insertions, 0 deletions