FabricMC / fabric-mixin-compile-extensions

Extensions for Mixin's annotation processor.
MIT License
8 stars 8 forks source link

MixinExtUtils.captialize() produces locale-dependent output #5

Closed UpcraftLP closed 2 years ago

UpcraftLP commented 4 years ago

https://github.com/FabricMC/fabric-mixin-compile-extensions/blob/f049573bc0ae4d50fc6fc37ea391f6f38cf429f3/src/main/java/net/fabricmc/loom/mixin/MixinExtUtils.java#L33 This snippet uses the no-argument overload of String#toUpperCase(), which should be replaced with String#toUpperCase(Locale.ROOT), to make the output independent of the system's current locale.