Repository navigation
docs: add Persian (فارسی) translation and language selector link - #1281
Merged
Merged
Conversation
Adds complete Persian translation (README.fa-IR.md) with RTL formatting and updates main README language selector to include Persian between Arabic and Italian.
safishamsi
added a commit
that referenced
this pull request
Jun 12, 2026
rbelem
pushed a commit
to rbelem/graphify
that referenced
this pull request
Jun 12, 2026
safishamsi
pushed a commit
that referenced
this pull request
Jul 18, 2026
…2 codec `graphify prs` reads gh, git, and claude output via subprocess.run(text=True) with no explicit encoding=, so on Windows stdout is decoded with the cp1252 locale codec. gh emits UTF-8 JSON whose PR titles and logins routinely carry non-Latin1 bytes (emoji, or the Persian title in PR #1281), and cp1252 has no mapping for bytes such as 0x81. The capture reader thread raises UnicodeDecodeError, subprocess.run then returns stdout=None, and the caller dies one line later on json.loads(None) (TypeError) or None.splitlines() (AttributeError). Neither is caught by _gh's except clause, so the whole `prs` command aborts, with a spurious reader-thread traceback on stderr, against any repo that has non-ASCII PR metadata. Pass encoding="utf-8", errors="replace" to all five subprocess reads in prs.py so decoding matches Linux and macOS. This is the decode-side sibling of #1505, which applied the same change to the llm.py claude-cli subprocess. CI runs Linux only (a UTF-8 locale), so this path is never exercised there. Reproduced on Windows 11 / CPython 3.13 with a cp1252 locale: prs._gh("pr", "view", "1281", ...) crashed with TypeError before and returns the decoded title after. The added regression tests assert encoding="utf-8" on each call, mirroring tests/test_charmap_encoding.py, and are red without the fix.
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
docs: add Persian (فارسی) translation and language selector link
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
…2 codec `graphify prs` reads gh, git, and claude output via subprocess.run(text=True) with no explicit encoding=, so on Windows stdout is decoded with the cp1252 locale codec. gh emits UTF-8 JSON whose PR titles and logins routinely carry non-Latin1 bytes (emoji, or the Persian title in PR Graphify-Labs#1281), and cp1252 has no mapping for bytes such as 0x81. The capture reader thread raises UnicodeDecodeError, subprocess.run then returns stdout=None, and the caller dies one line later on json.loads(None) (TypeError) or None.splitlines() (AttributeError). Neither is caught by _gh's except clause, so the whole `prs` command aborts, with a spurious reader-thread traceback on stderr, against any repo that has non-ASCII PR metadata. Pass encoding="utf-8", errors="replace" to all five subprocess reads in prs.py so decoding matches Linux and macOS. This is the decode-side sibling of Graphify-Labs#1505, which applied the same change to the llm.py claude-cli subprocess. CI runs Linux only (a UTF-8 locale), so this path is never exercised there. Reproduced on Windows 11 / CPython 3.13 with a cp1252 locale: prs._gh("pr", "view", "1281", ...) crashed with TypeError before and returns the decoded title after. The added regression tests assert encoding="utf-8" on each call, mirroring tests/test_charmap_encoding.py, and are red without the fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds complete Persian translation (README.fa-IR.md) with RTL formatting and updates main README language selector to include Persian between Arabic and Italian.