fix(ocr,gitignore): fix charmap encoding in OCR workers and ignore SQLite WAL files
- Fix UnicodeEncodeError in OCR worker subprocesses on Windows: spawned processes with 'spawn' context inherit charmap (CP1252) encoding, causing crashes when printing Romanian diacritics (ș, ț, ă) from OCR-extracted text. Fix: reconfigure sys.stdout/sys.stderr to UTF-8 in _worker_initializer(). - Add *.db-wal and *.db-shm to .gitignore for SQLite WAL mode auxiliary files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -519,6 +519,8 @@ secrets-backup/**/.env.*
|
||||
# ============================================================================
|
||||
# Backend unified data directories (cache, receipts, telegram)
|
||||
backend/data/cache/*.db
|
||||
backend/data/cache/*.db-wal
|
||||
backend/data/cache/*.db-shm
|
||||
backend/data/receipts/*.db
|
||||
backend/data/telegram/*.db
|
||||
backend/data/receipts/uploads/*
|
||||
|
||||
Reference in New Issue
Block a user