diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/movit/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/movit/files')
-rw-r--r-- | media-video/movit/files/movit-fix-locale.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/media-video/movit/files/movit-fix-locale.patch b/media-video/movit/files/movit-fix-locale.patch new file mode 100644 index 000000000000..f98c9705e9f9 --- /dev/null +++ b/media-video/movit/files/movit-fix-locale.patch @@ -0,0 +1,16 @@ +--- a/init.cpp 2016-02-14 19:53:12.141197530 +0100 ++++ b/init.cpp 2016-02-14 19:55:09.374196665 +0100 +@@ -388,7 +388,12 @@ + // Now we have something on the form X.YY. We convert it to a float, and hope + // that if it's inexact (e.g. 1.30), atof() will round the same way the + // compiler will. +- float glsl_version = atof(glsl_version_str); ++ ++ std::istringstream locale_convert(glsl_version_str); ++ locale_convert.imbue(std::locale("C")); ++ double glsl_version; ++ locale_convert >> glsl_version; ++ + free(glsl_version_str); + + return glsl_version; |