From 98ce0e50b76b5b0b913205b4932e63891e655e08 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 30 Dec 2019 11:09:03 -0800 Subject: [PATCH] Removed unnecessary setlocale() on Mac https://github.com/signal11/hidapi/commit/240bad3b669ad4874c8aa2d68e18e82232d63e35 --- src/hidapi/mac/hid.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/hidapi/mac/hid.c b/src/hidapi/mac/hid.c index 41c262fd1..f6420e187 100644 --- a/src/hidapi/mac/hid.c +++ b/src/hidapi/mac/hid.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -448,8 +447,6 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id, CFIndex num_devices; int i; - setlocale(LC_ALL,""); - /* Set up the HID Manager if it hasn't been done */ if (hid_init() < 0) return NULL; @@ -1153,8 +1150,6 @@ int main(void) IOHIDDeviceRef *device_array = calloc(num_devices, sizeof(IOHIDDeviceRef)); CFSetGetValues(device_set, (const void **) device_array); - setlocale(LC_ALL, ""); - for (i = 0; i < num_devices; i++) { IOHIDDeviceRef dev = device_array[i]; printf("Device: %p\n", dev);