mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] setlocale: wrong var passed to __get_locale
@ 2018-11-19 16:03 Julien Ramseier
  2018-11-19 16:49 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Ramseier @ 2018-11-19 16:03 UTC (permalink / raw)
  To: musl

This was introduced by commit d88e5dfa8b989dafff4b748bfb3cba3512c8482e

diff --git a/src/locale/setlocale.c b/src/locale/setlocale.c
index 637e7aa0..2bc7b500 100644
--- a/src/locale/setlocale.c
+++ b/src/locale/setlocale.c
@@ -34,7 +34,7 @@ char *setlocale(int cat, const char *name)
 					part[z-p] = 0;
 					if (*z) p = z+1;
 				}
-				lm = __get_locale(i, name);
+				lm = __get_locale(i, part);
 				if (lm == LOC_MAP_FAILED) {
 					UNLOCK(lock);
 					return 0;



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] setlocale: wrong var passed to __get_locale
  2018-11-19 16:03 [PATCH] setlocale: wrong var passed to __get_locale Julien Ramseier
@ 2018-11-19 16:49 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2018-11-19 16:49 UTC (permalink / raw)
  To: musl

On Mon, Nov 19, 2018 at 05:03:14PM +0100, Julien Ramseier wrote:
> This was introduced by commit d88e5dfa8b989dafff4b748bfb3cba3512c8482e
> 
> diff --git a/src/locale/setlocale.c b/src/locale/setlocale.c
> index 637e7aa0..2bc7b500 100644
> --- a/src/locale/setlocale.c
> +++ b/src/locale/setlocale.c
> @@ -34,7 +34,7 @@ char *setlocale(int cat, const char *name)
>  					part[z-p] = 0;
>  					if (*z) p = z+1;
>  				}
> -				lm = __get_locale(i, name);
> +				lm = __get_locale(i, part);
>  				if (lm == LOC_MAP_FAILED) {
>  					UNLOCK(lock);
>  					return 0;

Oops, this probably means I have some commits that I forgot to push..

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-19 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-19 16:03 [PATCH] setlocale: wrong var passed to __get_locale Julien Ramseier
2018-11-19 16:49 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).