Boost logo

Boost Users :

Subject: [Boost-users] [lexical_cast] locale dependent result?
From: Alexander Lamaison (awl03_at_[hidden])
Date: 2011-02-27 16:18:38


Is the result of lexical_cast<std::string> locale-dependent? One of my
contributors has submitted a fix for a problem he says is caused by
lexical_cast adding commas to a port number, e.g.: 65535 becomes "65,535".

I'm unable to reproduce this but it may be something specific to his
locale.

If this is the case, what would be the correct way to get a canonical,
locale-independent string from an integer?

Thanks.

Alex

-- 
Easy SFTP for Windows Explorer (http://www.swish-sftp.org)

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net