chocolatey / chocolatey/choco

Upgrade of some packages fails due to "Dotted and dotless I letter" (like inkscape)

Open
#2,601 2 comments 0 reactions 0 assignees View on GitHub
0 - Triaging Bug
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### What You Are Seeing?
Doing a "choco upgrade all -y" gives this failure message for inkscape in Windows OS using Turkic languages/locales:
`Failures

ınkscape - ınkscape not installed. The package was not found with the source(s) listed.
Source(s): 'https://community.chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify --pre,
the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
assistance.`

### Anything else?
I firstly opened an issue about this failure at https://github.com/chocolatey-community/chocolatey-packages/issues/1805 (thinking this is a package problem.). But I am told this is more like a problem in the choco codebase and should be handled here.
My original bug report was this:
`I believe the problem is the package naming which exhibits the "[Dotted and dotless I" problem](https://en.wikipedia.org/wiki/Dotted_and_dotless_I). In Turkic languages, Dotted "İ i" and dotless "I ı" are distinct letters. If the name of the package would have been written in lovercase letters like "inkscape", instead of "InkScape", it would work just fine. Installing inkscape works but upgrading all packages gives the error message.`
Thanks.

### What is Expected?
"choco upgrade all -y" command should not give the specified "ınkscape" error. The latest inkscape is already installed with chocolatey.
### How Did You Get This To Happen? (Steps to Reproduce)
1. choco install inkscape -y
2. choco upgrade all -y
3. `Failures

ınkscape - ınkscape not installed. The package was not found with the source(s) listed.
Source(s): 'https://community.chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify --pre,
the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
assistance.`

4. Notice: in the chocolatey error message "ınkscape" word is also written with a dotless "I", not "i")

### Output Log

Full Log Output
`Failures

ınkscape - ınkscape not installed. The package was not found with the source(s) listed.
Source(s): 'https://community.chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify --pre,
the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
assistance.`
https://gist.github.com/hkdemiralp/8943e8bb26d4cd3418de92795f60adf1

~~~sh
https://gist.github.com/hkdemiralp/8943e8bb26d4cd3418de92795f60adf1
~~~

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `choco install inkscape -y` followed by `choco upgrade all -y` under a Turkic Windows locale, then trace how the upgrade command compares and reports package names. Done means the installed `Inkscape` package is found without the dotless-I error and the upgrade command completes normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.