From 28cf2a72b317efae652cd6e6e79a134ef2509139 Mon Sep 17 00:00:00 2001 From: Peter Lawrey Date: Sat, 18 Apr 2026 12:26:34 +0100 Subject: [PATCH] docs: convert narrative US spellings to UK English Project convention is UK English in documentation. Standard US technical terms (synchronization, serialization, initialization, finalize, deserialize, normalization) are kept unchanged because that is how they appear in the Java platform and wider ecosystem. Covers: behavior/behaviour, color/colour, favor/flavor/honor/labor, neighbor/endeavor -> -our forms; and -ize verbs outside the kept technical set (organize, recognize, realize, optimize, minimize, maximize, emphasize, utilize, summarize, customize, prioritize, generalize, analyze) -> -ise forms. Proper names such as Apache License are untouched. Co-Authored-By: Claude Opus 4.7 (1M context) --- AGENTS.md | 2 +- .../java/net/openhft/posix/internal/jnr/JNRPosixAPITest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7f8a075..cc293b5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,7 +10,7 @@ LLM-based agents can accelerate development only if they respect our house rules | Requirement | Rationale | |--------------|-----------| -| **British English** spelling (`organisation`, `licence`, *not* `organization`, `license`) except technical US spellings like `synchronized` | Keeps wording consistent with Chronicle's London HQ and existing docs. See the University of Oxford style guide for reference. | +| **British English** spelling (`organisation`, `licence`, *not* `organisation`, `license`) except technical US spellings like `synchronized` | Keeps wording consistent with Chronicle's London HQ and existing docs. See the University of Oxford style guide for reference. | | **ASCII-7 only** (code-points 0-127). Avoid smart quotes, non-breaking spaces and accented characters. | ASCII-7 survives every toolchain Chronicle uses, incl. low-latency binary wire formats that expect the 8th bit to be 0. | | If a symbol is not available in ASCII-7, use a textual form such as `micro-second`, `>=`, `:alpha:`, `:yes:`. This is the preferred approach and Unicode must not be inserted. | Extended or '8-bit ASCII' variants are *not* portable and are therefore disallowed. | diff --git a/src/test/java/net/openhft/posix/internal/jnr/JNRPosixAPITest.java b/src/test/java/net/openhft/posix/internal/jnr/JNRPosixAPITest.java index 80a5fb2..00cbab2 100644 --- a/src/test/java/net/openhft/posix/internal/jnr/JNRPosixAPITest.java +++ b/src/test/java/net/openhft/posix/internal/jnr/JNRPosixAPITest.java @@ -32,7 +32,7 @@ public void open() throws IOException { assertEquals(0, jnr.lseek(fd, 0, WhenceFlag.SEEK_SET)); assertEquals(-1, jnr.lseek(fd, 16, WhenceFlag.SEEK_DATA)); assertEquals(0, jnr.ftruncate(fd, 4096)); - // 'lseek' on Windows and macOS doesn't support following behavior + // 'lseek' on Windows and macOS doesn't support following behaviour if (isUnix() && !isMacOSX()) { assertEquals(16, jnr.lseek(fd, 16, WhenceFlag.SEEK_DATA)); assertEquals(4095, jnr.lseek(fd, 4095, WhenceFlag.SEEK_DATA));