backupdrill 2.2.2 → 2.2.3

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.
@@ -141,7 +141,14 @@ export function libpqChildEnv(extraEnv = {}, base = process.env, opts = { supaba
141
141
  }
142
142
  if (noVerify)
143
143
  env.PGSSLROOTCERT = NO_VERIFY_ROOTCERT_SENTINEL;
144
- return { ...env, ...extraEnv };
144
+ // 消息语言钉成 C:恢复的成败判定按英文前缀 `pg_restore: error:` 切块(classifyBlocks)。带翻译
145
+ // (NLS)的客户端在非英文系统上写的是 "pg_restore: 错误:" / "Fehler:",一个预期冲突都认不出来,
146
+ // 健康的备份被判失败(2026-10-11 在中文 macOS 上用 Homebrew postgresql@17 复现)。macOS 的
147
+ // gettext 在 LANG 未设时还会去读系统首选语言,所以必须显式给 LC_ALL,extraEnv 也不许覆盖;
148
+ // LANGUAGE 在 C locale 下本就被 gettext 忽略,一并去掉免得歧义。只影响消息语言:pg_dump /
149
+ // pg_restore 的客户端编码取自数据库 / 归档本身,与 locale 无关。
150
+ delete env.LANGUAGE;
151
+ return { ...env, ...extraEnv, LC_ALL: "C" };
145
152
  }
146
153
  /** 见 libpqChildEnv:一个绝不存在的根证书路径 = 让 libpq 的 require 既不验证也不去找默认 root.crt。 */
147
154
  export const NO_VERIFY_ROOTCERT_SENTINEL = "/nonexistent/backupdrill-no-verify-root.crt";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backupdrill",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Open-source CLI to back up a Supabase project — Postgres database and Storage files — to your own S3/R2/B2 bucket, with a checksummed manifest.",
5
5
  "type": "module",
6
6
  "bin": {