Module: wine
Branch: master
Commit: d90f29d817517b7c7bd6737f268598f0ccd5295a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d90f29d817517b7c7bd6737f2…
Author: Ken Thomases <ken(a)codeweavers.com>
Date: Wed Jun 15 14:34:04 2016 -0500
kernel32: Overhaul the locale determination on the Mac.
The C library locale is inadequate for conveying the Mac user settings between
LOCALE_Init() and setup_unix_locales(). The set of locales supported by the C
library can't express the combinations allowed in user settings.
Setting LANG to a user-settings-derived locale when there's no corresponding C
library locale is actually worse than leaving it unset. It will prevent the
C library from honoring the LC_* variables (other than LC_ALL). That's why
Terminal.app won't set LANG in that case, it just sets LC_CTYPE=UTF-8. This
commit makes Wine follow similar logic in not setting LANG if the C library
doesn't support the Mac user settings.
Rather, it uses a wrapper around setlocale() to query the locale. That wrapper
returns a value representing the Mac user settings if the C library comes up
empty. It also has logic to handle Terminal's setting LC_CTYPE=UTF-8, since
parse_locale_name() can't handle that properly.
Signed-off-by: Ken Thomases <ken(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/kernel32/locale.c | 206 +++++++++++++++++++++++++++++++++++--------------
1 file changed, 150 insertions(+), 56 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=d90f29d817517b7c7bd67…
Module: wine
Branch: master
Commit: fe88161a2a464672f3e27d4da42a68e411f0acd7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe88161a2a464672f3e27d4da…
Author: David Lawrie <david.dljunk(a)gmail.com>
Date: Tue Jun 14 20:33:52 2016 -0700
winejoystick.drv: Ignore feature elements.
"Describes input and output elements not intended for consumption by the
end user." Ignore, as otherwise, comes up as a FIXME in Trace logs.
Signed-off-by: David Lawrie <david.dljunk(a)gmail.com>
Signed-off-by: Ken Thomases <ken(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/winejoystick.drv/joystick_osx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/winejoystick.drv/joystick_osx.c b/dlls/winejoystick.drv/joystick_osx.c
index ad82dd7..12ccff7 100644
--- a/dlls/winejoystick.drv/joystick_osx.c
+++ b/dlls/winejoystick.drv/joystick_osx.c
@@ -514,6 +514,9 @@ static void collect_joystick_elements(joystick_t* joystick, IOHIDElementRef coll
}
break;
}
+ case kIOHIDElementTypeFeature:
+ /* Describes input and output elements not intended for consumption by the end user. Ignoring. */
+ break;
default:
FIXME("Unhandled type %i\n",type);
break;