[MNG-7245] Maven doesn't start due to Unicode characters in path to jansi.dll
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 21h 11m
- Merged PRs (30d)
- 312
Description
**[Vladimir Ivanov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=zlumyo)** opened **[MNG-7245](https://issues.apache.org/jira/browse/MNG-7245?redirect=false)** and commented
Looks like there is the same issue as MNG-7165 but it's at Windows now.
```java
>mvn --version
Failed to load native library:jansi-2.3.4-42a78e9e6c4110f-jansi.dll. osinfo: Windows/x86_64
java.lang.UnsatisfiedLinkError: C:\Users\��������\AppData\Local\Temp\jansi-2.3.4-42a78e9e6c4110f-jansi.dll: Can't find dependent libraries
Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
Maven home: C:\Program Files\Apache\Maven
Java version: 11.0.12, vendor: Microsoft, runtime: C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot
Default locale: ru_RU, platform encoding: Cp1251
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
```
```java
>java --version
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment Microsoft-25199 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Microsoft-25199 (build 11.0.12+7, mixed mode)
```
---
**Affects:** 3.8.2
**Issue Links:**
- [MNG-7254](https://issues.apache.org/jira/browse/MNG-7254) Expand Windows native libraries for Jansi due to JDK-8195129 (workaround)
**Remote Links:**
- [JDK-8017274 System.load fails to load from paths containing unicode characters
](https://bugs.openjdk.java.net/browse/JDK-8017274)
Contributor guide
Research direction
Start by reproducing `mvn --version` on Windows when the user path contains Unicode characters, then compare the behavior with MNG-7165 and JDK-8017274. Check the related MNG-7254 workaround and verify that Maven starts and loads jansi successfully from such a path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100