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

Java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters #38

Open
satyaki-dash opened this issue Jun 30, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@satyaki-dash
Copy link

satyaki-dash commented Jun 30, 2021

Describe the bug

Getting Java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters

To Reproduce

Steps to reproduce the behavior:

  1. Add some file called as 大杉.txt or foo'bar.txt to your project directory
  2. Try to run sonar-scanner in project directory

Expected behavior

It should consider the file instead of crashing

Screenshots

Screenshot 2021-06-30 at 8 15 47 PM

Additional information (if any)

To fix the issue we need to update the locales from POSIX to UTF8 in the underlying os. like

LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8

@satyaki-dash satyaki-dash added the bug Something isn't working label Jun 30, 2021
@satyaki-dash satyaki-dash changed the title [BUG] Java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants