-
Notifications
You must be signed in to change notification settings - Fork 1.2k
#1239 Fix Agent properties passing at Windows filesystem directory with diacritics characters #1737
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
base: master
Are you sure you want to change the base?
Conversation
It is failing with JDK5, I assume that there has to be JDK 5 used, right? |
…h diacritics characters
4e54115
to
6053093
Compare
@bedla Thanks for this contribution! Yes, JaCoCo minimum runtime requirement is Java 5. For me it looks like breaking change. I don't think we can afford to change the JaCoCo agent API in an incompatible way. |
I see.
I mean, without having that bug fixed in the JDK, Jacoco (and other Agents) is not usable on Windows with diacritics in filepaths (eg. in corporate laptops where you do not have power to change some parent directories :( ). |
@bedla I'm a bit reluctant to add extra code for this situation, for the following reasons:
I would rather prefer to:
|
I understand and agree in general.
|
Maybe you misunderstood me: Of course the organizations put your real name into the directory entry, but the Windows profile id typically is a handle like |
I am talking about directory name like |
Exactly. In this case "IvoŠmíd" is the profile name. Which is a interesting choice to actually use names for this in an organization. I would guess JaCoCo is their least problem... |
I was digging little bit today in JDK and did not find any option that might help to fix it. I also found related issue in JDK issue tracker and linked them into original Github issue here. It looks like that until fixed in JDK the only solution is to not to have path specified with UTF-8 characters. :( This should be mentioned in documentation, if not already there. I am also thinking if having this behavior change behind some flag (eg |
Hi,
for issue #1239 I have created this pull request.
When parameters are encoded (here I have chosen url-encoding) I am able to use Jacoco with diacritics in path.
What do you think?
Thx
Ivos
related-to: #1735