Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Adding dlerr() diagnostics for libicu dlsym errors (#17454)
Browse files Browse the repository at this point in the history
  • Loading branch information
debayang authored and tarekgh committed Apr 9, 2018
1 parent 0f0320e commit 808a48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corefx/System.Globalization.Native/icushim.cpp
Expand Up @@ -254,7 +254,7 @@ extern "C" int32_t GlobalizationNative_LoadICU()
static_assert((sizeof(#fn) + MaxICUVersionStringLength + 1) <= sizeof(symbolName), "The symbolName is too small for symbol " #fn); \
sprintf(symbolName, #fn "%s", symbolVersion); \
fn##_ptr = (decltype(fn)*)dlsym(lib, symbolName); \
if (fn##_ptr == NULL) { fprintf(stderr, "Cannot get symbol %s from " #lib "\n", symbolName); abort(); }
if (fn##_ptr == NULL) { fprintf(stderr, "Cannot get symbol %s from " #lib "\nError: %s\n", symbolName, dlerror()); abort(); }

FOR_ALL_ICU_FUNCTIONS
#undef PER_FUNCTION_BLOCK
Expand Down

0 comments on commit 808a48c

Please sign in to comment.