| 25 | } |
| 26 | |
| 27 | bool IsAvailableLocale(const std::string& locale_identifier) |
| 28 | { |
| 29 | try { |
| 30 | (void)std::locale(locale_identifier); |
| 31 | } catch (const std::runtime_error&) { |
| 32 | return false; |
| 33 | } |
| 34 | return true; |
| 35 | } |
| 36 | } // namespace |
| 37 | |
| 38 | FUZZ_TARGET(locale) |