aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/diagnostics.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-04-06 16:20:29 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-07 15:09:59 +0300
commit87d896f1107a077f3d1876f8feb9dcf9ee93ea3c (patch)
tree609b144f65d0a0f0db95ea031d7cbf6dafec5535 /libbuild2/diagnostics.hxx
parente607800f687ba89fbdd97b2f1f1925217f00eb23 (diff)
Pass LC_ALL=C when extracting locale-dependent information on POSIX
Diffstat (limited to 'libbuild2/diagnostics.hxx')
-rw-r--r--libbuild2/diagnostics.hxx28
1 files changed, 26 insertions, 2 deletions
diff --git a/libbuild2/diagnostics.hxx b/libbuild2/diagnostics.hxx
index aef7bec..1290634 100644
--- a/libbuild2/diagnostics.hxx
+++ b/libbuild2/diagnostics.hxx
@@ -32,13 +32,15 @@ namespace build2
// nameN arg arg ... nullptr nullptr
//
LIBBUILD2_SYMEXPORT void
- print_process (diag_record&, const char* const* args, size_t n = 0);
+ print_process (diag_record&,
+ const char* const* args, size_t n = 0);
LIBBUILD2_SYMEXPORT void
print_process (const char* const* args, size_t n = 0);
inline void
- print_process (diag_record& dr, const cstrings& args, size_t n = 0)
+ print_process (diag_record& dr,
+ const cstrings& args, size_t n = 0)
{
print_process (dr, args.data (), n != 0 ? n : args.size ());
}
@@ -49,6 +51,28 @@ namespace build2
print_process (args.data (), n != 0 ? n : args.size ());
}
+ // As above but with process_env.
+ //
+ LIBBUILD2_SYMEXPORT void
+ print_process (diag_record&,
+ const process_env&, const char* const* args, size_t n = 0);
+
+ LIBBUILD2_SYMEXPORT void
+ print_process (const process_env&, const char* const* args, size_t n = 0);
+
+ inline void
+ print_process (diag_record& dr,
+ const process_env& pe, const cstrings& args, size_t n = 0)
+ {
+ print_process (dr, pe, args.data (), n != 0 ? n : args.size ());
+ }
+
+ inline void
+ print_process (const process_env& pe, const cstrings& args, size_t n = 0)
+ {
+ print_process (pe, args.data (), n != 0 ? n : args.size ());
+ }
+
// Program verbosity level (-v/--verbose plus --silent).
//
// 0 - disabled