[PR #883] [CLOSED] native_pso_hashes: stdout gets the errors=replace guard (NATIVE-PSO-HASHES-HELP) #922

Closed
opened 2026-11-26 20:19:30 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/883
Author: @Luna-OS
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: fix/native-pso-hashes-help


📝 Commits (1)

  • 8624b9f native_pso_hashes: stdout gets the errors=replace guard (NATIVE-PSO-HASHES-HELP)

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 tools/native_pso_hashes.py (+4 -0)

📄 Description

Claimed in the coordination issue as: NATIVE-PSO-HASHES-HELP (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135144377)

What and why

tests/test_tool_stdout_encoding.py requires every tool's __main__ block to set errors="replace" on stdout, and it fails on main because tools/native_pso_hashes.py has no guard:

- ['tools/native_pso_hashes.py']
+ [] : programs whose __main__ block doesn't set errors='replace' on stdout

This adds the same guard the other tools use. (The --help half of the original claim landed separately in 116de82, so this PR was rebased down to the guard.)

Tested

Windows 11, Python 3.13.7, no game files: tests/test_tool_stdout_encoding.py OK (was 1 failure), tests/test_native_pso_hashes.py OK.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • No translator rule changed.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/883 **Author:** [@Luna-OS](https://github.com/Luna-OS) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/native-pso-hashes-help` --- ### 📝 Commits (1) - [`8624b9f`](https://github.com/ubiquitarianism/leonida/commit/8624b9f9c58e065fe24d42eee16f8e26318e2419) native_pso_hashes: stdout gets the errors=replace guard (NATIVE-PSO-HASHES-HELP) ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/native_pso_hashes.py` (+4 -0) </details> ### 📄 Description Claimed in the coordination issue as: NATIVE-PSO-HASHES-HELP (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135144377) ### What and why `tests/test_tool_stdout_encoding.py` requires every tool's `__main__` block to set `errors="replace"` on stdout, and it fails on `main` because `tools/native_pso_hashes.py` has no guard: ``` - ['tools/native_pso_hashes.py'] + [] : programs whose __main__ block doesn't set errors='replace' on stdout ``` This adds the same guard the other tools use. (The `--help` half of the original claim landed separately in 116de82, so this PR was rebased down to the guard.) ### Tested Windows 11, Python 3.13.7, no game files: `tests/test_tool_stdout_encoding.py` OK (was 1 failure), `tests/test_native_pso_hashes.py` OK. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] No translator rule changed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:30 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#922
No description provided.