You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/10/01 09:19:36 UTC

[GitHub] [camel-quarkus] ppalaga opened a new issue #1861: Workaround broken native Locale support

ppalaga opened a new issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861


   https://github.com/oracle/graal/issues/1645 and https://github.com/oracle/graal/issues/911 suggest that non-default locales won't work properly in native mode. We should check whether we can leverage the workaround mentioned in https://stackoverflow.com/questions/61567216/graalvm-quarkus-locale-in-native-mode/61594634#61594634
   
   If the workaround works for us, we can use it to "register" Locale.ENGLISH required by Geocoder.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ffang commented on issue #1861: Broken native Locale support

Posted by GitBox <gi...@apache.org>.
ffang commented on issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861#issuecomment-832824861


   Hi @ppalaga ,
   
   Just FYI, if it's only one no-default locale needed in native mode, we can specify it in application.properties like
   ```
   quarkus.native.user-country=US
   quarkus.native.user-language=en
   ```
   Please take a look at https://github.com/apache/camel-quarkus/issues/2550#issuecomment-832204615 to get more details.
   
   Cheers
   Freeman


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #1861: Broken native Locale support

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861#issuecomment-823606601


   GraalVM 21.1 seems to bring some options control the locales embedded into the native image and we probably want to wait for https://github.com/quarkusio/quarkus/issues/5244 to provide config and programmatic access to those.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] aldettinger commented on issue #1861: Broken native Locale support

Posted by GitBox <gi...@apache.org>.
aldettinger commented on issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861#issuecomment-809451226


   There is another linked issue in quarkus https://github.com/quarkusio/quarkus/issues/5244.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #1861: Workaround broken native Locale support

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861#issuecomment-707356833


   Substituting `java.text.DecimalFormatSymbols.getInstance(Locale)` would solve the issue with `String.format(Locale.ROOT, "%.1f", double)` in Geocoder. I have a PoC, but it is a bit fragile and hard to generalize. I do not think it is worth having it just to solve the GeoCoder issue. Hopefully GraalVM comes with a proper non-default locale support soon https://github.com/oracle/graal/issues/2908


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #1861: Broken native Locale support

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861#issuecomment-842411901


   We need to adapt our documentation https://github.com/apache/camel-quarkus/pull/2601/files once quarkusio/quarkus#5244 gets fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #1861: Broken native Locale support

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861#issuecomment-836454051


   > if it's only one no-default locale needed in native mode, we can specify it in application.properties like
   > 
   > ```
   > quarkus.native.user-country=US
   > quarkus.native.user-language=en
   > ```
   
   Yes, thanks, I was not aware of those props. Indeed they may come in handy to workaround some native locale issues.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #1861: Broken native Locale support

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #1861:
URL: https://github.com/apache/camel-quarkus/issues/1861#issuecomment-842411901


   We need to adapt our documentation https://github.com/apache/camel-quarkus/pull/2601/files once quarkusio/quarkus#5244 gets fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org