From 86b1a3b711b10a4976312b2a069417515ce0d194 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sun, 15 Dec 2019 16:15:36 +0100 Subject: [PATCH] Use language-agnotic Locale.ROOT --- .../java/org/apache/hc/client5/http/impl/auth/DigestScheme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java index fae334f51..974d63c46 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java @@ -283,7 +283,7 @@ public class DigestScheme implements AuthScheme, Serializable { } final StringBuilder sb = new StringBuilder(8); - try (final Formatter formatter = new Formatter(sb, Locale.US)) { + try (final Formatter formatter = new Formatter(sb, Locale.ROOT)) { formatter.format("%08x", nounceCount); } final String nc = sb.toString();