Lars Gullik Bjønnes wrote:
> |  Package const & package()
> |  {
> | - BOOST_ASSERT(initialised_);
> | + // BOOST_ASSERT(initialised_);
> |  return package_;
> |  }
> 
> So the assert did hit because package was not initialized...

No, package_ IS initialised. It is a global variable who's default
constructor gives the various paths empty strings.

The Assert is just flagging up that whoever is calling package() is going
to get an empty string for the path.

> (This is what I meant. Why not make it wait for initialization until
> package() is run the first time?)

?

The gettext initialization in messages.C calls packages().locale_dir().
It's not me who's saying that gettext should not be invoked until after
package_ is reset with
    package_ = Package(argv0, 
                       cl_system_support_dir, 
                       cl_user_support_dir);

> Note that the use of %1% will not work with the non-boost.format
> bformat code. You should change it to use %1$s (%2$s) instead.

Thank you.

-- 
Angus

Reply via email to