mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
libinput: new package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
22
libs/libinput/patches/001-no-locale.patch
Normal file
22
libs/libinput/patches/001-no-locale.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/src/libinput-util.c
|
||||
+++ b/src/libinput-util.c
|
||||
@@ -215,18 +215,10 @@ parse_mouse_wheel_click_angle_property(c
|
||||
double
|
||||
parse_trackpoint_accel_property(const char *prop)
|
||||
{
|
||||
- locale_t c_locale;
|
||||
double accel;
|
||||
char *endp;
|
||||
|
||||
- /* Create a "C" locale to force strtod to use '.' as separator */
|
||||
- c_locale = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
|
||||
- if (c_locale == (locale_t)0)
|
||||
- return 0.0;
|
||||
-
|
||||
- accel = strtod_l(prop, &endp, c_locale);
|
||||
-
|
||||
- freelocale(c_locale);
|
||||
+ accel = strtod(prop, &endp);
|
||||
|
||||
if (*endp != '\0')
|
||||
return 0.0;
|
||||
Reference in New Issue
Block a user