mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:43:32 +03:00
Fixed a couple more locale-dependent toupper conversions, mainly for
clarity. This does fix one problem that causes ;type=i FTP URLs to fail in the Turkish locale when CURLOPT_PROXY_TRANSFER_MODE is used (test case 561) Added tests 561 and 1092 through 1094 to test various combinations of ;type= and ;mode= URLs that could potentially fail in the Turkish locale.
This commit is contained in:
parent
6bb9ef8de4
commit
5591550167
17 changed files with 314 additions and 27 deletions
|
|
@ -89,6 +89,7 @@
|
|||
#include "sockaddr.h" /* required for Curl_sockaddr_storage */
|
||||
#include "multiif.h"
|
||||
#include "url.h"
|
||||
#include "rawstr.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
|
@ -4141,7 +4142,7 @@ static CURLcode ftp_setup_connection(struct connectdata * conn)
|
|||
|
||||
if(type) {
|
||||
*type = 0; /* it was in the middle of the hostname */
|
||||
command = (char) toupper((int) type[6]);
|
||||
command = Curl_raw_toupper(type[6]);
|
||||
|
||||
switch (command) {
|
||||
case 'A': /* ASCII mode */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue