mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
IDN: fix ß with AppleIDN
Add flags UIDNA_NONTRANSITIONAL_TO_ASCII and UIDNA_NONTRANSITIONAL_TO_UNICODE to encode ß correctly. It fixes test 165. Reported-by: Viktor Szakats Bug: #14176 Closes #14179
This commit is contained in:
parent
764fbabf6e
commit
fd0250869f
1 changed files with 4 additions and 2 deletions
|
|
@ -57,7 +57,8 @@
|
|||
static CURLcode mac_idn_to_ascii(const char *in, char **out)
|
||||
{
|
||||
UErrorCode err = U_ZERO_ERROR;
|
||||
UIDNA* idna = uidna_openUTS46(UIDNA_CHECK_BIDI, &err);
|
||||
UIDNA* idna = uidna_openUTS46(
|
||||
UIDNA_CHECK_BIDI|UIDNA_NONTRANSITIONAL_TO_ASCII, &err);
|
||||
if(U_FAILURE(err)) {
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
|
@ -83,7 +84,8 @@ static CURLcode mac_idn_to_ascii(const char *in, char **out)
|
|||
static CURLcode mac_ascii_to_idn(const char *in, char **out)
|
||||
{
|
||||
UErrorCode err = U_ZERO_ERROR;
|
||||
UIDNA* idna = uidna_openUTS46(UIDNA_CHECK_BIDI, &err);
|
||||
UIDNA* idna = uidna_openUTS46(
|
||||
UIDNA_CHECK_BIDI|UIDNA_NONTRANSITIONAL_TO_UNICODE, &err);
|
||||
if(U_FAILURE(err)) {
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue