gparted/compose
Mike Fleetwood 75eba94a6c Prevent crash when using an unknown locale (#692049)
When GParted is run with a locale the OS doesn't know it crashes.
Reapply original fix.

    # LANG=xx_XX.UTF-8 ~mike/bin/gpartedbin

    (process:20385): Gtk-WARNING **: Locale not supported by C library.
            Using the fallback 'C' locale.
    ======================
    libparted : 3.1
    ======================

    (gpartedbin:20385): glibmm-ERROR **:
    unhandled exception (type std::exception) in signal handler:
    what: locale::facet::_S_create_c_locale name not valid

    Trace/breakpoint trap (core dumped)

Original bug:
    Bug #157871 - gparted 0.0.6 segfaults on start
First fix:
    commit a98126d69b
    quick 'fix' for crashers in some locales (#157871) basicly the same +
Accidentally reintroduced by:
    commit a739afc9a1
    Update String::ucompose library to version 1.0.5

Bug #692049 - Troubles with some locales
2013-01-20 11:02:41 -07:00
..
.cvsignore added *.swp corrected url 2006-03-16 15:09:52 +00:00
Makefile.am removed INSTALL some fixes to make 'make dist' work (thanks to Daniel 2005-10-05 22:37:17 +00:00
README Update String::ucompose library to version 1.0.5 2011-09-26 16:44:04 -06:00
ucompose.hpp Prevent crash when using an unknown locale (#692049) 2013-01-20 11:02:41 -07:00

README

Defines String::ucompose(fmt, arg...) for easy, i18n-friendly
composition of strings with Gtkmm >= 1.3.* (see www.gtkmm.org).
Uses Glib::ustring instead of std::string which doesn't work with
Gtkmm due to character encoding troubles with stringstreams.

Version 1.0.5.

Copyright (c) 2002, 03, 04, 07 Ole Laursen <olau@hardworking.dk>.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.


Basic usage is like:
String::ucompose("This is a %1x%2 matrix.", rows, cols);

See http://people.iola.dk/olau/compose/ for more details.