mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
One helper, tools/file-encoding.ts, detects UTF-16 by byte order mark and decodes text for read (UTF-8 as before otherwise) and losslessly for edit. Edit writes files back in the encoding they were read with; files that are not valid UTF-8 are decoded as Latin-1 so ASCII edits splice exactly their bytes, and non-ASCII edits, fuzzy matches and changes to the byte after a non-ASCII byte are refused. EditOperations gains an optional writeFileBytes for these files. fixes #10349 fixes #5797 |
||
|---|---|---|
| .. | ||
| bun | ||
| cli | ||
| core | ||
| experimental | ||
| extensions | ||
| modes | ||
| utils | ||
| cli.ts | ||
| config.ts | ||
| index.ts | ||
| main.ts | ||
| migrations.ts | ||
| package-manager-cli.ts | ||
| rpc-entry.ts | ||