[
https://issues.apache.org/jira/browse/THRIFT-3840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-3840.
------------------------------------------
Fix Version/s: 0.15.0
Resolution: Fixed
Resolving. {{TJSONProtocol.cpp}} calls {{str.imbue(std::locale::classic())}} on
both the read and write paths, so number formatting no longer follows the
global locale. PR #2401, commit {{43faa2d22}}. First released in 0.15.0.
_This comment was created with AI assistance._
> C++ TJSONProtocol still using locale dependent formatting
> ---------------------------------------------------------
>
> Key: THRIFT-3840
> URL: https://issues.apache.org/jira/browse/THRIFT-3840
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.9.3
> Environment: Linux, Boost 1.51
> Reporter: Gennady Kazachek
> Priority: Major
> Fix For: 0.15.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> This issue mainly the same as in
> https://issues.apache.org/jira/browse/THRIFT-2870.
> Double conversion was fixed, but integers not, although it was mentioned in
> comments.
> So, still, using lexical_cast for integer conversion lead to invalid
> symbols(comma) in JSON output and, thereby, broken protocol.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)