Skip to content
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

unpredictable package locale #5107

Open
720720 opened this issue Jan 5, 2025 · 4 comments
Open

unpredictable package locale #5107

720720 opened this issue Jan 5, 2025 · 4 comments
Labels
Area-Localization Issues related to localization Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@720720
Copy link

720720 commented Jan 5, 2025

Brief description of your issue

Get-WinSystemLocale

LCID             Name             DisplayName
----             ----             -----------
1033             en-US            English (United States)
Get-WinUserLanguageList

LanguageTag     : en-US
Autonym         : English (United States)
EnglishName     : English
LocalizedName   : English (United States)
ScriptName      : Latin
InputMethodTips : {0409:00000409, 0409:00000407}
Spellchecking   : True
Handwriting     : False

LanguageTag     : de-DE
Autonym         : Deutsch (Deutschland)
EnglishName     : German
LocalizedName   : German (Germany)
ScriptName      : Latin
InputMethodTips : {0407:00000407}
Spellchecking   : True
Handwriting     : False

https://github.com/microsoft/winget-pkgs/tree/master/manifests/s/ScooterSoftware/BeyondCompare/5

winget install ScooterSoftware.BeyondCompare.5

Winget downloads and installs the de-DE locale of Beyond Compare.
Is is not possible to install the en-US locale as long as there is a german entry in the WinUserLanguageList.
The only way to install the en-US locale is to remove the german language pack.

microsoft/winget-pkgs#207619
#4082

Steps to reproduce

winget install ScooterSoftware.BeyondCompare.5

Expected behavior

winget install ScooterSoftware.BeyondCompare.5

Found Beyond Compare 5 [ScooterSoftware.BeyondCompare.5] Version 5.0.4.30422
Downloading https://www.scootersoftware.com/files/BCompare-5.0.4.30422.exe
Successfully installed

Actual behavior

winget install ScooterSoftware.BeyondCompare.5

Found Beyond Compare 5 [ScooterSoftware.BeyondCompare.5] Version 5.0.4.30422
Downloading https://www.scootersoftware.com/files/BCompare-de-5.0.4.30422.exe
Successfully installed

Environment

Windows Package Manager v1.9.25200
Windows: Windows.Desktop v10.0.26100.2605
Package: Microsoft.DesktopAppInstaller v1.24.25200.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jan 5, 2025
@Dragon1573
Copy link

Issue verified ❤

Locale configurations
01:38:33 D:\...\winget-pkgs  [master ≡] 0ms pwsh$ Get-WinSystemLocale

LCID             Name             DisplayName
----             ----             -----------
1033             en-US            英语(美国)

01:38:36 D:\...\winget-pkgs  [master ≡] 18ms pwsh$ Get-WinUserLanguageList

LanguageTag     : zh-Hans-CN
Autonym         : 中文(中华人民共和国)
EnglishName     : Chinese
LocalizedName   : 中文(简体,中国)
ScriptName      : 中文(简体)
InputMethodTips : {0804:{E7EA138E-69F8-11D7-A6EA-00065B844310}{E7EA138F-69F8-11D7-A6EA-00065B844311}}
Spellchecking   : True
Handwriting     : True
Install check
01:39:58 D:\...\winget-pkgs  [master ≡] 2ms pwsh$ winget install -s winget -e ScooterSoftware.BeyondCompare.5
已找到 Beyond Compare 5 [ScooterSoftware.BeyondCompare.5] 版本 5.0.4.30422
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://www.scootersoftware.com/files/BCompare-zh-5.0.4.30422.exe
   - 正在取消操作

01:40:21 D:\...\winget-pkgs  [master ≡] 6.478s 0x80004004 pwsh$ winget install -s winget -e ScooterSoftware.BeyondCompare.5 --locale en-US
找不到适用的安装程序;有关详细信息,请参阅日志。

01:45:39 D:\...\winget-pkgs  [master ≡] 1ms pwsh$ winget install -s winget -e ScooterSoftware.BeyondCompare.5 --locale ja-JP
已找到 Beyond Compare 5 [ScooterSoftware.BeyondCompare.5] 版本 5.0.4.30422
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://www.scootersoftware.com/files/BCompare-jp-5.0.4.30422.exe
  █                               1024 KB / 27.1 MB
   - 正在取消操作
Manifest contents
01:41:26 D:\...\winget-pkgs  [master ≡] 1ms pwsh$ komac show --installer-manifest ScooterSoftware.BeyondCompare.5
PackageIdentifier: ScooterSoftware.BeyondCompare.5
PackageVersion: 5.0.4.30422
InstallerType: inno
UpgradeBehavior: install
Commands:
- bcomp
FileExtensions:
- bcpkg
- bcss
ProductCode: BeyondCompare5_is1
ReleaseDate: 2024-11-25
Installers:
- Architecture: x86
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-5.0.4.30422.exe
  InstallerSha256: D74892601A50514B5636E27D4BE4D3AC38597F2F6C7C7B6B5B169A48FFA1F341
  InstallerSwitches:
    Custom: /CURRENTUSER
- Architecture: x86
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-5.0.4.30422.exe
  InstallerSha256: D74892601A50514B5636E27D4BE4D3AC38597F2F6C7C7B6B5B169A48FFA1F341
  InstallerSwitches:
    Custom: /ALLUSERS
- Architecture: x64
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-5.0.4.30422.exe
  InstallerSha256: D74892601A50514B5636E27D4BE4D3AC38597F2F6C7C7B6B5B169A48FFA1F341
  InstallerSwitches:
    Custom: /CURRENTUSER
- Architecture: x64
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-5.0.4.30422.exe
  InstallerSha256: D74892601A50514B5636E27D4BE4D3AC38597F2F6C7C7B6B5B169A48FFA1F341
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: de-DE
  Architecture: x86
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-de-5.0.4.30422.exe
  InstallerSha256: 14D3991E9F659C8D3A2D8E1A7995746B027D2229909215638933043E89A4260A
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: de-DE
  Architecture: x86
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-de-5.0.4.30422.exe
  InstallerSha256: 14D3991E9F659C8D3A2D8E1A7995746B027D2229909215638933043E89A4260A
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: de-DE
  Architecture: x64
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-de-5.0.4.30422.exe
  InstallerSha256: 14D3991E9F659C8D3A2D8E1A7995746B027D2229909215638933043E89A4260A
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: de-DE
  Architecture: x64
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-de-5.0.4.30422.exe
  InstallerSha256: 14D3991E9F659C8D3A2D8E1A7995746B027D2229909215638933043E89A4260A
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: fr-FR
  Architecture: x86
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-fr-5.0.4.30422.exe
  InstallerSha256: 749D7A8D0D4ACB8FDAAD764BB6F58DD9DEE85D03E219E2681DC0942A72ABBABA
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: fr-FR
  Architecture: x86
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-fr-5.0.4.30422.exe
  InstallerSha256: 749D7A8D0D4ACB8FDAAD764BB6F58DD9DEE85D03E219E2681DC0942A72ABBABA
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: fr-FR
  Architecture: x64
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-fr-5.0.4.30422.exe
  InstallerSha256: 749D7A8D0D4ACB8FDAAD764BB6F58DD9DEE85D03E219E2681DC0942A72ABBABA
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: fr-FR
  Architecture: x64
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-fr-5.0.4.30422.exe
  InstallerSha256: 749D7A8D0D4ACB8FDAAD764BB6F58DD9DEE85D03E219E2681DC0942A72ABBABA
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: ja-JP
  Architecture: x86
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-jp-5.0.4.30422.exe
  InstallerSha256: 6677D5B31BA14F98489996EB2F64C7B20A12FAC1262B5D4ADCC50D6885576C14
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: ja-JP
  Architecture: x86
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-jp-5.0.4.30422.exe
  InstallerSha256: 6677D5B31BA14F98489996EB2F64C7B20A12FAC1262B5D4ADCC50D6885576C14
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: ja-JP
  Architecture: x64
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-jp-5.0.4.30422.exe
  InstallerSha256: 6677D5B31BA14F98489996EB2F64C7B20A12FAC1262B5D4ADCC50D6885576C14
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: ja-JP
  Architecture: x64
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-jp-5.0.4.30422.exe
  InstallerSha256: 6677D5B31BA14F98489996EB2F64C7B20A12FAC1262B5D4ADCC50D6885576C14
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: zh-CN
  Architecture: x86
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-zh-5.0.4.30422.exe
  InstallerSha256: 6C12342619E0224C7E256543DF3804F0F6001A20811929C0DDEE790040A9404D
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: zh-CN
  Architecture: x86
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-zh-5.0.4.30422.exe
  InstallerSha256: 6C12342619E0224C7E256543DF3804F0F6001A20811929C0DDEE790040A9404D
  InstallerSwitches:
    Custom: /ALLUSERS
- InstallerLocale: zh-CN
  Architecture: x64
  Scope: user
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-zh-5.0.4.30422.exe
  InstallerSha256: 6C12342619E0224C7E256543DF3804F0F6001A20811929C0DDEE790040A9404D
  InstallerSwitches:
    Custom: /CURRENTUSER
- InstallerLocale: zh-CN
  Architecture: x64
  Scope: machine
  InstallerUrl: https://www.scootersoftware.com/files/BCompare-zh-5.0.4.30422.exe
  InstallerSha256: 6C12342619E0224C7E256543DF3804F0F6001A20811929C0DDEE790040A9404D
  InstallerSwitches:
    Custom: /ALLUSERS
ManifestType: installer
ManifestVersion: 1.6.0

@denelon
Copy link
Contributor

denelon commented Jan 5, 2025

If you specify the locale and use force does the preferred locale get installed (assuming it's available).

You should also be able to specify a required or preferred locale via WinGet settings.

@denelon denelon added Area-Localization Issues related to localization Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Jan 5, 2025
@720720
Copy link
Author

720720 commented Jan 6, 2025

{
    "$schema": "https://aka.ms/winget-settings.schema.json",

    "installBehavior": {
        "preferences": {
            "locale": ["en-US"],
        }
    }
}

Is working as intended and installs the en-US locale.


winget install ScooterSoftware.BeyondCompare.5 --locale en-US
Is currently not working because of microsoft/winget-pkgs#207619

winget install ScooterSoftware.BeyondCompare.5 --locale fr-FR
Is working as intended and installs the fr-FR locale.


Get-WinUserLanguageList

LanguageTag     : en-US
Autonym         : English (United States)
EnglishName     : English
LocalizedName   : English (United States)
ScriptName      : Latin
InputMethodTips : {0409:00000407}
Spellchecking   : True
Handwriting     : False

LanguageTag     : fr-FR
Autonym         : Français (France)
EnglishName     : French
LocalizedName   : French (France)
ScriptName      : Latin
InputMethodTips : {040C:0000040C}
Spellchecking   : True
Handwriting     : False
winget install ScooterSoftware.BeyondCompare.5
Found Beyond Compare 5 [ScooterSoftware.BeyondCompare.5] Version 5.0.4.30422
Downloading https://www.scootersoftware.com/files/BCompare-fr-5.0.4.30422.exe
Successfully installed

Get-WinUserLanguageList

LanguageTag     : fr-FR
Autonym         : Français (France)
EnglishName     : French
LocalizedName   : French (France)
ScriptName      : Latin
InputMethodTips : {040C:0000040C}
Spellchecking   : True
Handwriting     : False

LanguageTag     : en-US
Autonym         : English (United States)
EnglishName     : English
LocalizedName   : English (United States)
ScriptName      : Latin
InputMethodTips : {0409:00000407}
Spellchecking   : True
Handwriting     : False
winget install ScooterSoftware.BeyondCompare.5
Trouvé Beyond Compare 5 [ScooterSoftware.BeyondCompare.5] Version 5.0.4.30422
Téléchargement en cours https://www.scootersoftware.com/files/BCompare-fr-5.0.4.30422.exe
Installé correctement

A new test with the fr-FR locale produces the same result.
As long as there is a fr-FR entry in WinUserLanguageList no matter what order the fr-FR locale is installed.

@denelon Im not sure if this problem is caused by winget or the package manifests.

@Trenly
Copy link
Contributor

Trenly commented Jan 6, 2025

I think that at least part of the issue is that there is no InstallerLocale: en-US in the manifest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Localization Issues related to localization Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

4 participants