You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
543 B

  1. --- a/src/libinput-util.c
  2. +++ b/src/libinput-util.c
  3. @@ -216,18 +216,10 @@ parse_mouse_wheel_click_angle_property(c
  4. double
  5. parse_trackpoint_accel_property(const char *prop)
  6. {
  7. - locale_t c_locale;
  8. double accel;
  9. char *endp;
  10. - /* Create a "C" locale to force strtod to use '.' as separator */
  11. - c_locale = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
  12. - if (c_locale == (locale_t)0)
  13. - return 0.0;
  14. -
  15. - accel = strtod_l(prop, &endp, c_locale);
  16. -
  17. - freelocale(c_locale);
  18. + accel = strtod(prop, &endp);
  19. if (*endp != '\0')
  20. return 0.0;