unbound-cli 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +9 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// Force UTF-8 stdio in every subprocess the CLI spawns (directly or
|
|
4
|
+
// transitively through bash / PowerShell / Python). Windows Python defaults
|
|
5
|
+
// to cp1252, which UnicodeEncodeError's on the ✅/❌ prints in setup scripts
|
|
6
|
+
// and aborts onboard mid-flight. Setting on process.env applies universally —
|
|
7
|
+
// Node's child_process APIs inherit process.env by default, so every current
|
|
8
|
+
// and future command is covered without touching call sites.
|
|
9
|
+
process.env.PYTHONIOENCODING = process.env.PYTHONIOENCODING || 'utf-8';
|
|
10
|
+
process.env.PYTHONUTF8 = process.env.PYTHONUTF8 || '1';
|
|
11
|
+
|
|
3
12
|
const { Command } = require('commander');
|
|
4
13
|
const config = require('./config');
|
|
5
14
|
const output = require('./output');
|