Automattic/node-canvas
Auf GitHub ansehenloadImage() unable to read file with non-ANSI filepath.
Open
#1.979 geöffnet am 2. Feb. 2022
3 Kommentare (3 Kommentare)0 Reaktionen (0 Reaktionen)0 zugewiesene Personen (0 zugewiesene Personen)JavaScript9.524 Stars (9.524 Stars)1.140 Forks (1.140 Forks)batch import
BugHelp wanted
Beschreibung
As described in title. OS:windows
Contributor Guide
- Tech Stack
- javascriptcppnodejs
- Domain
- backend
- Issue Type
- bug
- SchwierigkeitGeschätzte Implementierungsschwierigkeit für neue Contributors, von 1 für sehr kleine Änderungen bis 5 für Expertenarbeit.
- 3
- Geschätzte ZeitEin grober Zeitrahmen, um zu recherchieren, zu implementieren, zu testen und einen Pull Request vorzubereiten.
- half day
- AktivitätsstatusWie verfügbar das Issue gerade wirkt: frisch, aktiv, stale, blockiert oder wartet auf Maintainer-Input.
- fresh
- KlarheitWie klar das Issue die erwartete Änderung, Akzeptanzkriterien und den nächsten Schritt erklärt.
- needs investigation
- Voraussetzungen
- Node.js basicsFamiliarity with Windows file pathsC++ basics
- EinsteigerfreundlichkeitEin Score von 1 bis 100, der schätzt, wie zugänglich dieses Issue für First-Time Contributors ist.
- 30
- Research-Richtung
- The issue is that loadImage() fails for non ANSI filepaths on Windows. Look at the C++ source code for image loading, likely in src/Canvas.cc or Image.cc, to see how the file path is converted from JavaScript string to native. Check if there's use of ASCII only functions or if UTF 8 encoding is handled. Also review any existing PRs or comments in the issue for clues. A fix might involve using WideCharToMultiByte to handle Unicode paths on Windows.