emscripten-core / emscripten-core/emscripten

Long preloaded file not properly read on Windows

Aperta
#19,955 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
27.6k
Fork
3.6k
Merge medio
1g 6h
PR unite (30g)
109

Descrizione

**Version of emscripten/emsdk:**
```
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.42 (6ede0b8fc1c979bb206148804bfb48b472ccc3da)
clang version 17.0.0 (https://github.com/llvm/llvm-project f3b64887de61020c09404bfee97b2fadd30df10a)
Target: wasm32-unknown-emscripten
Thread model: posix
```

**Bug Description**

In short, if a very long file (in my case, 116363 lines) is preloaded using `--preload-file`, nothing will go wrong when opening the html or js on linux. However on Windows, not all lines are included (in my case, only 112130 lines could be read), no matter using _node_ or a browser.

A reproducing example can be found at https://github.com/hjenryin/wasm_test. How results can be reproduced can be found in the readme file.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.