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

Force String.toLowerCase() to use Locale.ENGLISH #40

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

tresf
Copy link
Contributor

@tresf tresf commented Mar 18, 2021

This is untested, but I believe it will fix the issues described in #39.

Theoretically, closes #39

@imagejan
Copy link
Member

I adapted NativeLoaderTest to temporarily change to Turkish Locale, so that the test fails on Windows without the commit 7313c34 by @tresf.

See also the https://github.com/scijava/native-lib-loader/tree/test-issue-39 branch for the failing test on top of master.

As the issue seems specific to Windows, the test passes e.g. on Mac OSX no matter if the fix is included or not, but it definitely solves the problem on Windows.

So this PR also practically closes #39 🙂

Looks good to be merged for me 👍 (/cc @ctrueden)

Copy link
Contributor

@Shaquu Shaquu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition! Never imagined such a bug.

@tresf
Copy link
Contributor Author

tresf commented Jun 3, 2021

Friendly bump! What's needed to get this merged?

@tresf
Copy link
Contributor Author

tresf commented Jul 12, 2021

Hi again. The JSSC project will be releasing a new version very soon, it would be very nice to have this dependency resolved so that we do not have to build a one-off version (java-native/jssc#80) or remove this dependency altogether.

@imagejan imagejan requested a review from hinerm July 12, 2021 16:45
@hinerm hinerm merged commit f098f12 into scijava:master Jul 12, 2021
@hinerm
Copy link
Member

hinerm commented Jul 12, 2021

Thanks @imagejan and @tresf! I just cut a 2.3.6 release - let me know if you need anything else :)

@tresf tresf deleted the turkish branch July 26, 2021 15:39
@tresf
Copy link
Contributor Author

tresf commented Jul 26, 2021

Thanks @imagejan and @tresf! I just cut a 2.3.6 release - let me know if you need anything else :)

Thanks! Any chance you can bump it in Maven as well?

@imagejan
Copy link
Member

What do you mean by "bump it in Maven"?

@hinerm It seems version 2.3.6 was deployed to maven.scijava.org but not to Maven Central, maybe due to the recent migration to GitHub Actions?

@tresf
Copy link
Contributor Author

tresf commented Jul 27, 2021

version 2.3.6 was deployed to maven.scijava.org but not to Maven Central

Thanks. The project which originally exposed this bug uses the maven central mirror.

@ctrueden
Copy link
Member

ctrueden commented Jul 27, 2021

Weird... according to the POM configuration, the 2.3.6 release should have gone to OSS Sonatype and therefore be available from Maven Central. But indeed, it did not, and was deployed to the Releases repository of maven.scijava.org instead. I'll see if I can figure out why this failed to deploy as desired.

@ctrueden
Copy link
Member

ctrueden commented Jul 27, 2021

I figured out what went wrong, and fixed some problems:

  1. The ci-build.sh script case for doing releases never triggered, even on release tags, due to a bug. I fixed it now.
  2. The GPG signing fails with Inappropriate ioctl for device on CI, unless export GPG_TTY=$(tty) is set.
  3. We were pinned to maven-gpg-plugin version 1.6, but it's not compatible with gpg 2.1+ (signing failed: No such file or directory). I added a hack to the ci-build.sh script to force maven-gpg-plugin.version to 3.0.1 if it's less than 3.0.1, and updated pom-scijava-base to use 3.0.1 from (not-yet-released) version 31.0.0 onward. This fixed some GPG signing errors.

Unfortunately, I still don't have GPG signing of releases working on GitHub Actions. The error I'm troubleshooting now is signing failed: No pinentry. We can't deploy to OSS Sonatype again until that is fixed. I'll keep working on it, and get native-lib-loader 2.3.6 onto Central as soon as I can.

@tresf
Copy link
Contributor Author

tresf commented Aug 5, 2021

I'll get native-lib-loader 2.3.6 onto Central as soon as I can.

Hi, friendly bump. Maven Central is still showing 2.3.5: https://mvnrepository.com/artifact/org.scijava/native-lib-loader. 🍻

Edit: I've added the following to my pom.xml and successfully using the scijava mirror.

  <repositories>
    <repository>
      <id>maven.scijava.org</id>
      <name>SciJava</name>
      <url>https://maven.scijava.org/content/groups/public/</url>
    </repository>
  </repositories>

@ctrueden
Copy link
Member

@tresf I finally got native-lib-loader 2.3.6 deployed to Maven Central, where it should be. Sorry for the delay on that. We just completed a migration from Travis CI to GitHub Actions, and there were some kinks to iron out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No Turkish support, toLowerCase() breaks
5 participants