Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 902842 Details for
Bug 1105521
FastURLDecoder cannot decode surrogate pair characters
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
a patch for testcase.
surrogatepairtest.patch (text/plain), 954 bytes, created by
Takayuki Konishi
on 2014-06-06 10:18:53 UTC
(
hide
)
Description:
a patch for testcase.
Filename:
MIME Type:
Creator:
Takayuki Konishi
Created:
2014-06-06 10:18:53 UTC
Size:
954 bytes
patch
obsolete
>diff --git a/common/src/test/java/org/gatein/common/text/FastURLDecoderTestCase.java b/common/src/test/java/org/gatein/common/text/FastURLDecoderTestCase.java >index 0573b95..af03a06 100644 >--- a/common/src/test/java/org/gatein/common/text/FastURLDecoderTestCase.java >+++ b/common/src/test/java/org/gatein/common/text/FastURLDecoderTestCase.java >@@ -246,4 +246,17 @@ public class FastURLDecoderTestCase extends TestCase > assertEquals("\u0100", tmp.asString()); > } > } >+ >+ public void testEncodeSurrogatePair() throws Exception >+ { >+ FastURLDecoder encoder = FastURLDecoder.getUTF8Instance(); >+ CharBuffer out = new CharBuffer(); >+ StringBuilder sb = new StringBuilder( 2 ); >+ sb.append( ( char ) 0xD840 ); >+ sb.append( ( char ) 0xDC0B ); >+ String s=sb.toString(); // U+20000B >+ String t = URLEncoder.encode(s, "UTF8"); >+ encoder.encode(t, out); >+ assertEquals(s, out.asString()); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1105521
: 902842