---
name: "SHARYANTO::Locale::Util"
section: "3pm"
platform: "linux"
package: "libsharyanto-utils-perl"
version: "0.67-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/SHARYANTO::Locale::Util"
---

# SHARYANTO::Locale::Util(3pm)

Locale utilities

## NAME

SHARYANTO::Locale::Util - Locale utilities

## VERSION

version 0.67

## SYNOPSIS

```
 use SHARYANTO::Locale::Util qw(setlocale LC_ALL);
 setlocale(LC_ALL, "en_US") or warn "Can't setlocale: $!";
```

## EXPORTS

### LC\_\*

Imported from POSIX.

### setlocale($category, $locale)

A wrapper around POSIX's *setlocale()*. When given a locale in the form of "en\_US", some systems fail. This wrapper tries to find a suitable encoding and retries with e.g. setlocale($category, "en\_US.UTF-8").

## EXPORT TAGS

### :locale\_h

### :all

## SEE ALSO

POSIX

## HOMEPAGE

Please visit the project's homepage at \<https://metacpan.org/release/SHARYANTO-Utils\>.

## SOURCE

Source repository is at \<https://github.com/sharyanto/perl-SHARYANTO-Utils\>.

## BUGS

Please report any bugs or feature requests on the bugtracker website \<https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Utils\>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

## AUTHOR

Steven Haryanto \<stevenharyanto@gmail.com\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
