From: Tim Clem tclem@codeweavers.com
--- configure | 2 ++ configure.ac | 1 + dlls/icu/Makefile.in | 5 +++++ dlls/icu/icu.c | 47 ++++++++++++++++++++++++++++++++++++++++++++ dlls/icu/icu.spec | 2 ++ 5 files changed, 57 insertions(+) create mode 100644 dlls/icu/Makefile.in create mode 100644 dlls/icu/icu.c create mode 100644 dlls/icu/icu.spec
diff --git a/configure b/configure index 23fc01d0aad..1c3a714ff90 100755 --- a/configure +++ b/configure @@ -1182,6 +1182,7 @@ enable_ia2comproxy enable_iccvid enable_icmp enable_icmui +enable_icu enable_ieframe enable_ieproxy enable_iertutil @@ -22389,6 +22390,7 @@ wine_fn_config_makefile dlls/iccvid enable_iccvid wine_fn_config_makefile dlls/icmp enable_icmp wine_fn_config_makefile dlls/icmui enable_icmui wine_fn_config_makefile dlls/icmui/tests enable_tests +wine_fn_config_makefile dlls/icu enable_icu wine_fn_config_makefile dlls/ieframe enable_ieframe wine_fn_config_makefile dlls/ieframe/tests enable_tests wine_fn_config_makefile dlls/ieproxy enable_ieproxy diff --git a/configure.ac b/configure.ac index 6d093b52526..e38262d4c3d 100644 --- a/configure.ac +++ b/configure.ac @@ -2757,6 +2757,7 @@ WINE_CONFIG_MAKEFILE(dlls/iccvid) WINE_CONFIG_MAKEFILE(dlls/icmp) WINE_CONFIG_MAKEFILE(dlls/icmui) WINE_CONFIG_MAKEFILE(dlls/icmui/tests) +WINE_CONFIG_MAKEFILE(dlls/icu) WINE_CONFIG_MAKEFILE(dlls/ieframe) WINE_CONFIG_MAKEFILE(dlls/ieframe/tests) WINE_CONFIG_MAKEFILE(dlls/ieproxy) diff --git a/dlls/icu/Makefile.in b/dlls/icu/Makefile.in new file mode 100644 index 00000000000..441c30c5a93 --- /dev/null +++ b/dlls/icu/Makefile.in @@ -0,0 +1,5 @@ +MODULE = icu.dll + +EXTRADLLFLAGS = -Wb,--prefer-native + +SOURCES = icu.c diff --git a/dlls/icu/icu.c b/dlls/icu/icu.c new file mode 100644 index 00000000000..991b7392850 --- /dev/null +++ b/dlls/icu/icu.c @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2025 Tim Clem for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> +#include <stdint.h> + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(icu); + +typedef WCHAR UChar; +typedef int32_t UErrorCode; /* Actually an enum */ + +int32_t CDECL ucal_getTimeZoneIDForWindowsID( const UChar *winid, int32_t len, const char *region, + UChar *id, int32_t idCapacity, UErrorCode *status ) +{ + FIXME("%s %s %p %d %p - stub\n", + len == -1 ? debugstr_w(winid) : debugstr_wn(winid, len), + debugstr_a(region), id, idCapacity, status); + + /* This is ICU's documented behavior when the Windows ID is unmappable or + unknown. It does not touch status or id in this case. */ + return 0; +} + +const char * CDECL u_errorName( UErrorCode code ) +{ + FIXME("%d - stub\n", code); + return "U_UNSUPPORTED_ERROR"; +} diff --git a/dlls/icu/icu.spec b/dlls/icu/icu.spec new file mode 100644 index 00000000000..00a4aa707e3 --- /dev/null +++ b/dlls/icu/icu.spec @@ -0,0 +1,2 @@ +@ cdecl ucal_getTimeZoneIDForWindowsID(ptr long ptr ptr long ptr) +@ cdecl u_errorName(long)