Are there any updates of localization support in C++0x?

后端 未结 2 2061
鱼传尺愫
鱼传尺愫 2021-02-14 06:12

The more I work with C++ locale facets, more I understand --- they are broken.

  • std::time_get -- is not symmetric with std::time_put (as i
2条回答
  •  庸人自扰
    2021-02-14 06:52

    I agree with you, C++ is lacking proper i18n support.

    Does anybody knows whether any changes are expected in standard facets in C++0x?

    It is too late in the game, so probably not.

    Is there any way to bring an importance of such changes?

    I am very pessimistic about this.

    When asked directly, Stroustrup claimed that he does not see any problems with the current status. And another one of the big C++ guys (book author and all) did not even realize that wchar_t can be one byte, if you read the standard.

    And some threads in boost (which seems to drive the direction in the future) show so little understanding on how this works that is outright scary.

    C++0x barely added some Unicode character data types, late in the game and after a lot of struggle. I am not holding my breath for more too soon.

    I guess the only chance to see something better is if someone really good/respected in the i18n and C++ worlds gets directly involved with the next version of the standard. No clue who that might be though :-(

提交回复
热议问题