fix: correct sparse VHD command to include `true` (#13512)

* fix: correct sparse VHD command to include `true` * Revert all localization strings to f8c26f7c3 except en-US/Resources.resw * fix: run validate-localization.py with --fix option

Junhao Liao committed Oct 1, 2025 at 19:49 UTC 98f496011874ea441ce41c9a0de64f2feed9f52a
2 files changed +3 -3
localization/strings/en-US/Resources.resw
+1 -1
@@ -1108,7 +1108,7 @@ Error code: {}</value>
1108 <data name="MessageSparseVhdDisabled" xml:space="preserve">
1109 <value>Sparse VHD support is currently disabled due to potential data corruption.
1110 To force a distribution to use a sparse vhd, please run:
1111 -wsl.exe --manage &lt;DistributionName&gt; --set-sparse --allow-unsafe</value>
1111 +wsl.exe --manage &lt;DistributionName&gt; --set-sparse true --allow-unsafe</value>
1112 <comment>{Locked="--manage "}{Locked="--set-sparse "}{Locked="--allow-unsafe"}Command line arguments, file names and string inserts should not be translated</comment>
1113 </data>
1114 <data name="MessageDrvfsMountFailed" xml:space="preserve">
test/windows/SimpleTests.cpp
+2 -2
@@ -110,7 +110,7 @@ class SimpleTests
110 L"The operation completed successfully. \r\n",
111 L"wsl: Sparse VHD support is currently disabled due to potential data corruption.\r\n"
112 L"To force a distribution to use a sparse vhd, please run:\r\n"
113 - L"wsl.exe --manage <DistributionName> --set-sparse --allow-unsafe\r\n",
113 + L"wsl.exe --manage <DistributionName> --set-sparse true --allow-unsafe\r\n",
114 0);
115
116 std::filesystem::path vhdPath = vhdDir / LXSS_VM_MODE_VHD_NAME;
@@ -123,7 +123,7 @@ class SimpleTests
123 std::format(L"{} {} {} {}", WSL_MANAGE_ARG, tempDistro, WSL_MANAGE_ARG_SET_SPARSE_OPTION_LONG, L"true").c_str(),
124 L"Sparse VHD support is currently disabled due to potential data corruption.\r\n"
125 L"To force a distribution to use a sparse vhd, please run:\r\n"
126 - L"wsl.exe --manage <DistributionName> --set-sparse --allow-unsafe\r\nError code: Wsl/Service/E_INVALIDARG\r\n",
126 + L"wsl.exe --manage <DistributionName> --set-sparse true --allow-unsafe\r\nError code: Wsl/Service/E_INVALIDARG\r\n",
127 L"",
128 -1);
129