Skip to content

Commit ee1f42b

Browse files
committed
fix: unicode
Specifically, PERL_UNICODE=SAD means that Perl should add the :utf8 layer to the Standard IO handles, to the Argument list, and should be the Default for any other handles opened as well. We only did 'SD' previously which messed up file names.
1 parent 9a7c14f commit ee1f42b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uswriting/exiftool",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "ExifTool powered by WebAssembly to extract metadata from files in browsers and Node.js environments using zeroperl",
55
"scripts": {
66
"build": "node build.mjs && tsc --emitDeclarationOnly",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function parseMetadata<TReturn = string>(
139139
const wasiOptions: WASIOptions = {
140140
env: {
141141
LC_ALL: "C",
142-
PERL_UNICODE: "SD",
142+
PERL_UNICODE: "SAD",
143143
},
144144
args: args,
145145
features: [

0 commit comments

Comments
 (0)