aboutsummaryrefslogtreecommitdiff
path: root/bpkg
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg')
-rw-r--r--bpkg/types6
1 files changed, 4 insertions, 2 deletions
diff --git a/bpkg/types b/bpkg/types
index 1171444..cfe2add 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -90,12 +90,14 @@ namespace bpkg
//
namespace std
{
- // Custom path printing (with trailing slash for directories).
+ // Custom path printing (canonicalized, with trailing slash for directories).
//
inline ostream&
operator<< (ostream& os, const ::butl::path& p)
{
- return os << p.representation ();
+ string r (p.representation ());
+ ::butl::path::traits::canonicalize (r);
+ return os << r;
}
}