forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[readline-unix] No empty tools dir; patch crash (microsoft#33830)
* [readline-unix] No empty tools dir * Raise patchlevel, cleanup
- Loading branch information
Showing
5 changed files
with
40 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/nls.c b/nls.c | ||
index 5c6a13b..8c027d6 100644 | ||
--- a/nls.c | ||
+++ b/nls.c | ||
@@ -141,6 +141,10 @@ _rl_init_locale (void) | ||
if (lspec == 0) | ||
lspec = ""; | ||
ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */ | ||
+ if (ret == 0 || *ret == 0) | ||
+ ret = setlocale (LC_CTYPE, (char *)NULL); | ||
+ if (ret == 0 || *ret == 0) | ||
+ ret = RL_DEFAULT_LOCALE; | ||
#else | ||
ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec; | ||
#endif | ||
diff --git a/patchlevel b/patchlevel | ||
index d8c9df7..fdf4740 100644 | ||
--- a/patchlevel | ||
+++ b/patchlevel | ||
@@ -1,3 +1,3 @@ | ||
# Do not edit -- exists only for use by patch | ||
|
||
-0 | ||
+1 |
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
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