Skip to content

Commit

Permalink
icu: Add u_errorName() stub.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #24402
  • Loading branch information
Paul Gofman committed Oct 25, 2024
1 parent 69d63af commit 9be2df0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/icu/icu.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#@ stub u_digit
#@ stub u_enumCharNames
#@ stub u_enumCharTypes
#@ stub u_errorName
@ cdecl u_errorName(long)
#@ stub u_foldCase
#@ stub u_forDigit
#@ stub u_formatMessage
Expand Down
7 changes: 7 additions & 0 deletions dlls/icu/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@

WINE_DEFAULT_DEBUG_CHANNEL(icu);

const char * U_EXPORT2 u_errorName(UErrorCode code)
{
FIXME( "code %d stub.\n", code );

return "ICU_UNKNOWN_ERROR";
}

int32_t U_EXPORT2 ucal_getTimeZoneIDForWindowsID( const UChar *win_id, int32_t len, const char *region, UChar *id,
int32_t ret_len, UErrorCode *status )
{
Expand Down
2 changes: 2 additions & 0 deletions include/icu.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ typedef enum UErrorCode
}
UErrorCode;

const char * U_EXPORT2 u_errorName(UErrorCode code);

int32_t U_EXPORT2 ucal_getTimeZoneIDForWindowsID( const UChar *win_id, int32_t len, const char *region, UChar *id,
int32_t ret_len, UErrorCode *status );

Expand Down

0 comments on commit 9be2df0

Please sign in to comment.