From 9327c86fe76273b3b6a8473f33d02f58dc5a23b7 Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 27 Oct 2011 16:52:27 +0200 Subject: [PATCH] Use Locale.US when calling toUpperCase() on the generated MIME boundary Fixes issue 3733 --- src/com/fsck/k9/mail/internet/MimeMultipart.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/internet/MimeMultipart.java b/src/com/fsck/k9/mail/internet/MimeMultipart.java index a59e11484..4ee381af4 100644 --- a/src/com/fsck/k9/mail/internet/MimeMultipart.java +++ b/src/com/fsck/k9/mail/internet/MimeMultipart.java @@ -6,6 +6,7 @@ import com.fsck.k9.mail.MessagingException; import com.fsck.k9.mail.Multipart; import java.io.*; +import java.util.Locale; import java.util.Random; public class MimeMultipart extends Multipart { @@ -44,7 +45,7 @@ public class MimeMultipart extends Multipart { for (int i = 0; i < 30; i++) { sb.append(Integer.toString(random.nextInt(36), 36)); } - return sb.toString().toUpperCase(); + return sb.toString().toUpperCase(Locale.US); } public String getPreamble() {