Make sure the behavior does not change with the locale.
Showing the changes to avserver.c (1 of 23 files). Show all
Unified · Split
| @@ -1113,7 +1113,7 @@ static int extract_rates(char *rates, int ratelen, const char *request) · 1112 unmodified lines | |||
| 1113 | if (av_strncasecmp(p, "Pragma:", 7) == 0) { | 1113 | if (av_strncasecmp(p, "Pragma:", 7) == 0) { |
| 1114 | const char *q = p + 7; | 1114 | const char *q = p + 7; |
| 1115 | 1115 | ||
| 1116 | while (*q && *q != '\n' && isspace(*q)) | 1116 | while (*q && *q != '\n' && av_isspace(*q)) |
| 1117 | q++; | 1117 | q++; |
| 1118 | 1118 | ||
| 1119 | if (av_strncasecmp(q, "stream-switch-entry=", 20) == 0) { | 1119 | if (av_strncasecmp(q, "stream-switch-entry=", 20) == 0) { |
| @@ -1135,7 +1135,7 @@ static int extract_rates(char *rates, int ratelen, const char *request) · 15 unmodified lines | |||
| 1135 | if (stream_no < ratelen && stream_no >= 0) | 1135 | if (stream_no < ratelen && stream_no >= 0) |
| 1136 | rates[stream_no] = rate_no; | 1136 | rates[stream_no] = rate_no; |
| 1137 | 1137 | ||
| 1138 | while (*q && *q != '\n' && !isspace(*q)) | 1138 | while (*q && *q != '\n' && !av_isspace(*q)) |
| 1139 | q++; | 1139 | q++; |
| 1140 | } | 1140 | } |
| 1141 | 1141 | ||
| @@ -1246,7 +1246,7 @@ static void get_word(char *buf, int buf_size, const char **pp) · 104 unmodified lines | |||
| 1246 | p = *pp; | 1246 | p = *pp; |
| 1247 | skip_spaces(&p); | 1247 | skip_spaces(&p); |
| 1248 | q = buf; | 1248 | q = buf; |
| 1249 | while (!isspace(*p) && *p != '\0') { | 1249 | while (!av_isspace(*p) && *p != '\0') { |
| 1250 | if ((q - buf) < buf_size - 1) | 1250 | if ((q - buf) < buf_size - 1) |
| 1251 | *q++ = *p; | 1251 | *q++ = *p; |
| 1252 | p++; | 1252 | p++; |
| @@ -1263,7 +1263,7 @@ static void get_arg(char *buf, int buf_size, const char **pp) · 10 unmodified lines | |||
| 1263 | int quote; | 1263 | int quote; |
| 1264 | 1264 | ||
| 1265 | p = *pp; | 1265 | p = *pp; |
| 1266 | while (isspace(*p)) p++; | 1266 | while (av_isspace(*p)) p++; |
| 1267 | q = buf; | 1267 | q = buf; |
| 1268 | quote = 0; | 1268 | quote = 0; |
| 1269 | if (*p == '\"' || *p == '\'') | 1269 | if (*p == '\"' || *p == '\'') |
| @@ -1273,7 +1273,7 @@ static void get_arg(char *buf, int buf_size, const char **pp) · 3 unmodified lines | |||
| 1273 | if (*p == quote) | 1273 | if (*p == quote) |
| 1274 | break; | 1274 | break; |
| 1275 | } else { | 1275 | } else { |
| 1276 | if (isspace(*p)) | 1276 | if (av_isspace(*p)) |
| 1277 | break; | 1277 | break; |
| 1278 | } | 1278 | } |
| 1279 | if (*p == '\0') | 1279 | if (*p == '\0') |
| @@ -1377,7 +1377,7 @@ static IPAddressACL* parse_dynamic_acl(FFStream *stream, HTTPContext *c) · 97 unmodified lines | |||
| 1377 | break; | 1377 | break; |
| 1378 | line_num++; | 1378 | line_num++; |
| 1379 | p = line; | 1379 | p = line; |
| 1380 | while (isspace(*p)) | 1380 | while (av_isspace(*p)) |
| 1381 | p++; | 1381 | p++; |
| 1382 | if (*p == '\0' || *p == '#') | 1382 | if (*p == '\0' || *p == '#') |
| 1383 | continue; | 1383 | continue; |
| @@ -1528,7 +1528,7 @@ static int http_parse_request(HTTPContext *c) · 144 unmodified lines | |||
| 1528 | for (p = c->buffer; *p && *p != '\r' && *p != '\n'; ) { | 1528 | for (p = c->buffer; *p && *p != '\r' && *p != '\n'; ) { |
| 1529 | if (av_strncasecmp(p, "User-Agent:", 11) == 0) { | 1529 | if (av_strncasecmp(p, "User-Agent:", 11) == 0) { |
| 1530 | useragent = p + 11; | 1530 | useragent = p + 11; |
| 1531 | if (*useragent && *useragent != '\n' && isspace(*useragent)) | 1531 | if (*useragent && *useragent != '\n' && av_isspace(*useragent)) |
| 1532 | useragent++; | 1532 | useragent++; |
| 1533 | break; | 1533 | break; |
| 1534 | } | 1534 | } |
| @@ -1654,7 +1654,7 @@ static int http_parse_request(HTTPContext *c) · 119 unmodified lines | |||
| 1654 | char *eoh; | 1654 | char *eoh; |
| 1655 | char hostbuf[260]; | 1655 | char hostbuf[260]; |
| 1656 | 1656 | ||
| 1657 | while (isspace(*hostinfo)) | 1657 | while (av_isspace(*hostinfo)) |
| 1658 | hostinfo++; | 1658 | hostinfo++; |
| 1659 | 1659 | ||
| 1660 | eoh = strchr(hostinfo, '\n'); | 1660 | eoh = strchr(hostinfo, '\n'); |
| @@ -4060,7 +4060,7 @@ static int parse_ffconfig(const char *filename) · 2399 unmodified lines | |||
| 4060 | break; | 4060 | break; |
| 4061 | line_num++; | 4061 | line_num++; |
| 4062 | p = line; | 4062 | p = line; |
| 4063 | while (isspace(*p)) | 4063 | while (av_isspace(*p)) |
| 4064 | p++; | 4064 | p++; |
| 4065 | if (*p == '\0' || *p == '#') | 4065 | if (*p == '\0' || *p == '#') |
| 4066 | continue; | 4066 | continue; |
| @@ -4198,7 +4198,7 @@ static int parse_ffconfig(const char *filename) · 131 unmodified lines | |||
| 4198 | get_arg(arg, sizeof(arg), &p); | 4198 | get_arg(arg, sizeof(arg), &p); |
| 4199 | p1 = arg; | 4199 | p1 = arg; |
| 4200 | fsize = strtod(p1, &p1); | 4200 | fsize = strtod(p1, &p1); |
| 4201 | switch(toupper(*p1)) { | 4201 | switch(av_toupper(*p1)) { |
| 4202 | case 'K': | 4202 | case 'K': |
| 4203 | fsize *= 1024; | 4203 | fsize *= 1024; |
| 4204 | break; | 4204 | break; |