Lines 45-55
retry_locale:
Link Here
|
45 |
is_locale_initialized = (intptr_t) fc_atomic_ptr_get (&static_is_locale_initialized); |
45 |
is_locale_initialized = (intptr_t) fc_atomic_ptr_get (&static_is_locale_initialized); |
46 |
if (!is_locale_initialized) |
46 |
if (!is_locale_initialized) |
47 |
{ |
47 |
{ |
|
|
48 |
char *loc; |
49 |
|
48 |
is_locale_initialized = FcTrue; |
50 |
is_locale_initialized = FcTrue; |
49 |
if (!fc_atomic_ptr_cmpexch (&static_is_locale_initialized, NULL, |
51 |
if (!fc_atomic_ptr_cmpexch (&static_is_locale_initialized, NULL, |
50 |
(void *)(intptr_t) is_locale_initialized)) |
52 |
(void *)(intptr_t) is_locale_initialized)) |
51 |
goto retry_locale; |
53 |
goto retry_locale; |
52 |
setlocale (LC_ALL, ""); |
54 |
|
|
|
55 |
loc = setlocale (LC_ALL, NULL); |
56 |
if (!loc || strcmp (loc, "C") == 0) |
57 |
setlocale (LC_ALL, ""); |
53 |
} |
58 |
} |
54 |
retry_config: |
59 |
retry_config: |
55 |
config = fc_atomic_ptr_get (&_fcConfig); |
60 |
config = fc_atomic_ptr_get (&_fcConfig); |
56 |
- |
|
|