Ffi-locale v1.0.1


I’ve just released the ffi-locale gem v1.0.1 which is a thin wrapper
around the C library functions setlocale and localeconv.

To install:

$ [sudo] gem install ffi-locale

The main purpose of this gem is to provide the setlocale(LC_ALL, “”)
call to 1.8.7 for my ffi-ncurses library so that widechar functions
will correctly process UTF-8 input. However, as it wasn’t much more
work, I’ve added the localeconv method which returns the various
monetary formatting conventions based on the current locale (such as
currency symbol, decimal point character, etc.).

Source code available at https://github.com/seanohalpin/ffi-locale.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs