From 02da0ed09ea297b0131d5e87646863c97f8f7ce9 Mon Sep 17 00:00:00 2001 From: Lukas Cone Date: Mon, 6 Nov 2023 19:11:08 +0100 Subject: [PATCH] preserve xfs extension --- toolset/xfs_conv/xfs_to_xml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolset/xfs_conv/xfs_to_xml.cpp b/toolset/xfs_conv/xfs_to_xml.cpp index 9cf15e1..d0deb83 100644 --- a/toolset/xfs_conv/xfs_to_xml.cpp +++ b/toolset/xfs_conv/xfs_to_xml.cpp @@ -49,7 +49,8 @@ void AppProcessFile(AppContext *ctx) { return; } - auto &outStr = ctx->NewFile(ctx->workingFile.ChangeExtension(".xml")).str; + auto &outStr = + ctx->NewFile(std::string(ctx->workingFile.GetFullPath()) + ".xml").str; pugi::xml_document doc; xfs.ToXML(doc);