-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bd9a96
commit 741ef11
Showing
5 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2023 Broadcom. | ||
# The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. | ||
# | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Broadcom, Inc. - initial API and implementation | ||
|
||
set(PATCH_STAMP "${CMAKE_BINARY_DIR}/uri_patch_applied.stamp") | ||
|
||
if(NOT EXISTS ${PATCH_STAMP}) | ||
execute_process(COMMAND ${GIT_EXECUTABLE} apply ${PROJECT_SOURCE_DIR}/cmake/uri_patch.diff) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E touch ${PATCH_STAMP}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/detail/uri_parse.cpp b/src/detail/uri_parse.cpp | ||
index 7f77148..73f581e 100644 | ||
--- a/src/detail/uri_parse.cpp | ||
+++ b/src/detail/uri_parse.cpp | ||
@@ -31,7 +31,7 @@ bool validate_scheme(string_view::const_iterator &it, | ||
} | ||
|
||
// The first character must be a letter | ||
- if (!std::isalpha(*it, std::locale("C"))) { | ||
+ if (!std::isalpha(*it, std::locale::classic())) { | ||
return false; | ||
} | ||
++it; |