I would like to use DecimalFormat with a custom pattern. The pattern can be set using the applyPattern() method, but this is not possible for Numberformat, so the DecimalFormat has to be used. However, the use of DecimalFormat is not possible without providing a locale and it then uses the locale setting to apply the locale-specific patter on top of the custom pattern. So, in essence the output is changed and does not meet the specifics of the supplied pattern anymore.
The case has been brought up before, but no solution that would us: DecimalFormat ignores given pattern but uses Locale
Is there a way to have strict use of a custom pattern without any automatic locale formatting magic? Thanks.