This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 1.x
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
The following commit(s) were added to refs/heads/1.x by this push:
new 6ecfba0 Avoid file encoding issues in tests. Use \unnnn encoding
6ecfba0 is described below
commit 6ecfba092af9ce12f044f601063f4a356c3c334c
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Jan 31 12:36:29 2023 +0000
Avoid file encoding issues in tests. Use \unnnn encoding
---
.../org/apache/commons/fileupload/util/mime/MimeUtilityTestCase.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/test/java/org/apache/commons/fileupload/util/mime/MimeUtilityTestCase.java
b/src/test/java/org/apache/commons/fileupload/util/mime/MimeUtilityTestCase.java
index 98a4cd5..4596731 100644
---
a/src/test/java/org/apache/commons/fileupload/util/mime/MimeUtilityTestCase.java
+++
b/src/test/java/org/apache/commons/fileupload/util/mime/MimeUtilityTestCase.java
@@ -37,12 +37,12 @@ public final class MimeUtilityTestCase {
@Test
public void decodeUtf8QuotedPrintableEncoded() throws Exception {
- assertEncoded(" h�! ���u !!!",
"=?UTF-8?Q?_h=C3=A9!_=C3=A0=C3=A8=C3=B4u_!!!?=");
+ assertEncoded(" h\u00e9! \u00e0\u00e8\u00f4u !!!",
"=?UTF-8?Q?_h=C3=A9!_=C3=A0=C3=A8=C3=B4u_!!!?=");
}
@Test
public void decodeUtf8Base64Encoded() throws Exception {
- assertEncoded(" h�! ���u !!!", "=?UTF-8?B?IGjDqSEgw6DDqMO0dSAhISE=?=");
+ assertEncoded(" h\u00e9! \u00e0\u00e8\u00f4u !!!",
"=?UTF-8?B?IGjDqSEgw6DDqMO0dSAhISE=?=");
}
@Test