I have set the locals to a language with a comma as a decimal separator, like "de_DE".
If I set set_locale_radix(".") I would expect that {"RFCFLOAT": "1.2"} could be parsed without errors.
But I'm getting the error pyrfc._exception.ExternalRuntimeError: 22 (rc=22): key=RFC_CONVERSION_FAILURE, message=Cannot convert string value 1.2 at position 1 for the field RFCFLOAT to type RFCTYPE_FLOAT [MSG: class=, type=, number=, v1-4:=;;;]
To Reproduce
Describe the steps to reproduce the behavior, including test script.
I have set the locals to a language with a comma as a decimal separator, like "de_DE".
If I set
set_locale_radix(".")
I would expect that {"RFCFLOAT": "1.2"} could be parsed without errors.But I'm getting the error
pyrfc._exception.ExternalRuntimeError: 22 (rc=22): key=RFC_CONVERSION_FAILURE, message=Cannot convert string value 1.2 at position 1 for the field RFCFLOAT to type RFCTYPE_FLOAT [MSG: class=, type=, number=, v1-4:=;;;]
To Reproduce Describe the steps to reproduce the behavior, including test script.
Aditional informaiton If I replace
set_locale_radix
withlocale.setlocale(locale.LC_NUMERIC, "en_GB.UTF-8")
the script runs without any errors.Environment