Skip to content

fix(android): name the locale the xref offsets are formatted in - #854

Merged
andiwand merged 1 commit into
mainfrom
fix/android-lint-default-locale
Sep 6, 2026
Merged

fix(android): name the locale the xref offsets are formatted in#854
andiwand merged 1 commit into
mainfrom
fix/android-lint-default-locale

Conversation

@andiwand

@andiwand andiwand commented Sep 6, 2026

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

The aar job has failed on main since #850:

jni/testfixtures/app/opendocument/core/TestFiles.java:89: Error: Implicitly
using the default locale is a common source of bugs: Use String.format(Locale,
...) instead [DefaultLocale]
> Task :lintDebug FAILED

The fixture formats a pdf xref entry, whose offsets are ascii digits in every
locale, so Locale.ROOT is both what lint wants and what the format means —
the same call Color.toString already makes.

Nothing else in jni/java, jni/testfixtures or android/src uses a
locale-sensitive format.

`lintDebug` fails the aar build on `DefaultLocale`: the fixture's
`String.format` for an xref entry takes whatever locale the device has,
and a pdf's offsets are ascii digits in every one of them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018e3PEzyU2oAFSzsEoWsSmz
@andiwand
andiwand merged commit 978dec8 into main Sep 6, 2026
25 checks passed
@andiwand
andiwand deleted the fix/android-lint-default-locale branch September 6, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant