yes, good catch. I applied this. Thanks
On Mon, Jun 27, 2016 at 7:01 AM Pawel Golinski <golp...@gmail.com> wrote:
> Without this, mlt_properties_set_lcnumeric() doesn't
> work properly on OS X.
> ---
> src/framework/mlt_properties.c | 2 +-
> src/framework/mlt_property.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/framework/mlt_properties.c
> b/src/framework/mlt_properties.c
> index 8eee288..78f562b 100644
> --- a/src/framework/mlt_properties.c
> +++ b/src/framework/mlt_properties.c
> @@ -174,7 +174,7 @@ const char* mlt_properties_get_lcnumeric(
> mlt_properties self )
> if ( list->locale )
> {
> #if defined(__APPLE__)
> - result = querylocale( LC_NUMERIC, list->locale );
> + result = querylocale( LC_NUMERIC_MASK, list->locale );
> #elif defined(__GLIBC__)
> result = list->locale->__names[ LC_NUMERIC ];
> #else
> diff --git a/src/framework/mlt_property.c b/src/framework/mlt_property.c
> index 5aa9ce1..a7b7287 100644
> --- a/src/framework/mlt_property.c
> +++ b/src/framework/mlt_property.c
> @@ -696,7 +696,7 @@ char *mlt_property_get_string_l( mlt_property self,
> locale_t locale )
> // TODO: when glibc gets sprintf_l, start using it! For
> now, hack on setlocale.
> // Save the current locale
> #if defined(__APPLE__)
> - const char *localename = querylocale( LC_NUMERIC, locale );
> + const char *localename = querylocale( LC_NUMERIC_MASK,
> locale );
> #elif defined(__GLIBC__)
> const char *localename = locale->__names[ LC_NUMERIC ];
> #else
> @@ -930,7 +930,7 @@ char *mlt_property_get_time( mlt_property self,
> mlt_time_format format, double f
> // TODO: when glibc gets sprintf_l, start using it! For
> now, hack on setlocale.
> // Save the current locale
> #if defined(__APPLE__)
> - const char *localename = querylocale( LC_NUMERIC, locale );
> + const char *localename = querylocale( LC_NUMERIC_MASK,
> locale );
> #elif defined(__GLIBC__)
> const char *localename = locale->__names[ LC_NUMERIC ];
> #else
> --
> 2.7.4 (Apple Git-66)
>
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel