From ae29fb76f0ee8e17d699ca05b1f0c8660aae60d0 Mon Sep 17 00:00:00 2001 From: Paul Westbrook Date: Mon, 12 Aug 2013 11:43:44 -0700 Subject: [PATCH] Fix problem in IMAP with non-roman locales This is a partial cherry-pick of: https://android-review.googlesource.com/#/c/57514/1 Change-Id: I1dea4d5bf0bd02fec2baf5763f5864c3eb32f744 --- src/com/android/email/mail/store/imap/ImapConstants.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/mail/store/imap/ImapConstants.java b/src/com/android/email/mail/store/imap/ImapConstants.java index eee2ac44e..658dcd837 100644 --- a/src/com/android/email/mail/store/imap/ImapConstants.java +++ b/src/com/android/email/mail/store/imap/ImapConstants.java @@ -18,13 +18,15 @@ package com.android.email.mail.store.imap; import com.android.email.mail.Store; +import java.util.Locale; + public final class ImapConstants { private ImapConstants() {} public static final String FETCH_FIELD_BODY_PEEK_BARE = "BODY.PEEK"; public static final String FETCH_FIELD_BODY_PEEK = FETCH_FIELD_BODY_PEEK_BARE + "[]"; public static final String FETCH_FIELD_BODY_PEEK_SANE - = String.format("BODY.PEEK[]<0.%d>", Store.FETCH_BODY_SANE_SUGGESTED_SIZE); + = String.format(Locale.US, "BODY.PEEK[]<0.%d>", Store.FETCH_BODY_SANE_SUGGESTED_SIZE); public static final String FETCH_FIELD_HEADERS = "BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc message-id)]";