[Nix-dev] Boost and Locale issues

roconnor at theorem.ca roconnor at theorem.ca
Fri Mar 25 03:15:28 CET 2011


I've almost completed a package for bitcoin, but I'm having a locale issue

$ result/bin/bitcoin
terminate called after throwing an instance of 'std::runtime_error'
   what():  locale::facet::_S_create_c_locale name not valid
Aborted

However the programs run correctly in an environment where LANG=C or 
LC_ALL=C.

I *think* this is a boost related issue.

I can probably work around this by wrapping the executable to set the 
environment beforehand, but I'd rather fix the actual problem rather than 
hiding it.  This might mean patching boost?

Anyhow, I know next to nothing about locale issues and absolutely nothing 
about how locale issues interact with NixOS.  Any tips?

viric claims that freecad has the same problem.

-- 
Russell O'Connor                                      <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''



More information about the nix-dev mailing list