This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Then, you want to look at the output from the program; you can't trust the exit code, in general.
Argh! Therefore, since not-installed locale data leads to an exception, I can simply wrap a set of std::locale(name) in a try/catch, and, either output << "YES" in the try, or "NO" in the catch. Makes sense?
Any hint about the best way to look at the output? Or the idea is redirecting to a file and then using "string first" (I see that in a check part of v3-build_support) on it?
-- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |