-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Win 11 "takeown /d y" parameter is language dependent #149
Comments
Thank you @arman-ku. I can reproduce this on german versions of Windows. Since this issue was raised (around the 0.12.X releases), I've already removed most instances of Here's a summary of the options considered:
The most effective solution I found is to use the I'm planning to implement this solution using the |
This commit addresses the language dependency of the `takeown /d y` command in non-English Windows versions by using the `choice` utility. This utility dynamically determines the equivalent of 'yes' in the current system language, resolving issues encountered in the delete script. Other solution options such as enumerating language equivalents, adjusting script culture settings, using side-effects of the `copy` command, and parsing `takeown` help documentation proved either impractical or unreliable. The `choice` command has been successfully tested in both English and German environments, ensuring reliable execution across various locales. This change replaces the previous `takeown` usage in the script, its reliability across diverse Windows locales.
This commit addresses the language dependency of the `takeown /d y` command in non-English Windows versions by using the `choice` utility. This utility dynamically determines the equivalent of 'yes' in the current system language, resolving issues encountered in the delete script. Other solution options such as enumerating language equivalents, adjusting script culture settings, using side-effects of the `copy` command, and parsing `takeown` help documentation proved either impractical or unreliable. The `choice` command has been successfully tested in both English and German environments, ensuring reliable execution across various locales. This change replaces the previous `takeown` usage in the script, its reliability across diverse Windows locales.
The fix is released in 0.12.10 🚀. |
win 11 10.0.22000.778
some options use
takeown
with/d y
parameters. The y is language dependent however.For example, i installed a german build, so the "y" would be a "j" for "ja".
Code example:
will throw:
Error: Invalid syntax. The 'y' value cannot be used for the '/d' option.
The text was updated successfully, but these errors were encountered: