mirror of https://github.com/apache/lucene.git
LUCENE-3913: use ENGLISH locale for reproducibility
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1304929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e8b55d32c
commit
bf93518a38
|
@ -448,8 +448,8 @@ public class _TestUtil {
|
||||||
pos += Character.charCount(codePoint);
|
pos += Character.charCount(codePoint);
|
||||||
String codePointSubstring = new String(new int[] { codePoint }, 0, 1);
|
String codePointSubstring = new String(new int[] { codePoint }, 0, 1);
|
||||||
switch (nextInt(random, 0, 2)) {
|
switch (nextInt(random, 0, 2)) {
|
||||||
case 0: builder.append(codePointSubstring.toUpperCase()); break;
|
case 0: builder.append(codePointSubstring.toUpperCase(Locale.ENGLISH)); break;
|
||||||
case 1: builder.append(codePointSubstring.toLowerCase()); break;
|
case 1: builder.append(codePointSubstring.toLowerCase(Locale.ENGLISH)); break;
|
||||||
case 2: builder.append(codePointSubstring); // leave intact
|
case 2: builder.append(codePointSubstring); // leave intact
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue