GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — fix: preserve UTF-8 BOM when reading/writing files · Issue #35071 · anomalyco/opencode Closed DescriptionDescriptionWhen editing files with UTF-8 BOM (Byte Order Mark), the BOM is stripped after save. This corrupts files that require BOM encoding (e.g., some Windows batch files, PowerShell scripts, or files from certain editors). Root CauseEffect's FileSystem.readFileString uses TextDecoder which strips BOM by default. When the file is written back, the BOM is lost because the content string no longer contains it. Proposed FixIn packages/shared/src/filesystem.ts, wrap
MiMo Code ReferenceThis fix has been implemented in MiMo Code PR #1520: XiaomiMiMo/MiMo-Code#1520 Environment
Steps to Reproduce
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |