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:
Steven Rowe 2012-03-24 21:26:45 +00:00
parent 8e8b55d32c
commit bf93518a38
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }
} }