aboutsummaryrefslogtreecommitdiff
path: root/win32/resources
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-02-27 13:57:40 +0000
committerRon Yorston <rmy@pobox.com>2026-02-27 14:27:40 +0000
commited525e2db10081f095d2fccc1b02830654470401 (patch)
tree4467394a255c596be9c3573d8d0b5e4f3eb3dcea /win32/resources
parent05219c1f97be1dc7a3f825a5a658a137d90b03a2 (diff)
downloadbusybox-w32-long_paths.tar.gz
busybox-w32-long_paths.tar.bz2
busybox-w32-long_paths.zip
win32: add (some) long path supportlong_paths
Use the longPathAware manifest entry to handle path lengths above 260. This requires the LongPathsEnabled registry key to be set at run-time. Modify (some) WIN32 API calls to use the wide-character variant. These features are controlled by the build-time configuration option FEATURE_LONG_PATHS, which is not enabled by default.
Diffstat (limited to 'win32/resources')
-rw-r--r--win32/resources/resources.rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/win32/resources/resources.rc b/win32/resources/resources.rc
index b76f1af23..50642831c 100644
--- a/win32/resources/resources.rc
+++ b/win32/resources/resources.rc
@@ -52,6 +52,9 @@ BEGIN
52 "<asmv3:application>" 52 "<asmv3:application>"
53 "<asmv3:windowsSettings>" 53 "<asmv3:windowsSettings>"
54 "<activeCodePage xmlns=""http://schemas.microsoft.com/SMI/2019/WindowsSettings"">UTF-8</activeCodePage>" 54 "<activeCodePage xmlns=""http://schemas.microsoft.com/SMI/2019/WindowsSettings"">UTF-8</activeCodePage>"
55# if ENABLE_FEATURE_LONG_PATHS
56 "<longPathAware xmlns=""http://schemas.microsoft.com/SMI/2016/WindowsSettings"">true</longPathAware>"
57# endif
55 "</asmv3:windowsSettings>" 58 "</asmv3:windowsSettings>"
56 "</asmv3:application>" 59 "</asmv3:application>"
57 "<trustInfo xmlns=""urn:schemas-microsoft-com:asm.v3"">" 60 "<trustInfo xmlns=""urn:schemas-microsoft-com:asm.v3"">"
@@ -78,7 +81,16 @@ END
781 24 811 24
79BEGIN 82BEGIN
80 "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>" 83 "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>"
84# if !ENABLE_FEATURE_LONG_PATHS
81 "<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">" 85 "<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">"
86# else
87 "<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" xmlns:asmv3=""urn:schemas-microsoft-com:asm.v3"" manifestVersion=""1.0"">"
88 "<asmv3:application>"
89 "<asmv3:windowsSettings>"
90 "<longPathAware xmlns=""http://schemas.microsoft.com/SMI/2016/WindowsSettings"">true</longPathAware>"
91 "</asmv3:windowsSettings>"
92 "</asmv3:application>"
93# endif
82 "<trustInfo xmlns=""urn:schemas-microsoft-com:asm.v3"">" 94 "<trustInfo xmlns=""urn:schemas-microsoft-com:asm.v3"">"
83 "<security>" 95 "<security>"
84 "<requestedPrivileges>" 96 "<requestedPrivileges>"