From 25d09eaf2d43ba064f1c5991aec96c31a7356fe4 Mon Sep 17 00:00:00 2001 From: Robin Vobruba Date: Thu, 23 Jan 2025 06:06:03 +0100 Subject: [PATCH] Fixes a format string error in LangTags --- .../src/main/java/org/apache/jena/graph/langtag/LangTags.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jena-core/src/main/java/org/apache/jena/graph/langtag/LangTags.java b/jena-core/src/main/java/org/apache/jena/graph/langtag/LangTags.java index 29efa034b0d..bf28bdd9ee1 100644 --- a/jena-core/src/main/java/org/apache/jena/graph/langtag/LangTags.java +++ b/jena-core/src/main/java/org/apache/jena/graph/langtag/LangTags.java @@ -113,7 +113,7 @@ private static List splitOnDash(String x) { sb.setLength(0); continue; } - error("Bad character: (0x%02X) '%c' index %d", (int)ch, str(ch), idx); + error("Bad character: (0x%02X) '%s' index %d", (int)ch, str(ch), idx); } String strLast = sb.toString(); if ( strLast.isEmpty() ) {