2011-04-27

Boost.localeは何の冗談だ

The problem even if the source is UTF-8 with BOM "שלום" would
be encoded according to locale's 8bit codepage like 1255 or 936
and not UTF-8 string (codepage 65001).

It is rather stupid, but this is how MSVC works or understands
the place of UTF-8 in this world.

Unicode and Visual Studio is just broken...

こんな人間がよくlocaleライブラリなんて設計しようと思い立ったな。こう言ってやりたいね。

Give us all a favor and cease developing locale library. It's not only useless, but also harmful. It encourage people to use ASCII.

4 comments:

  1. このエントリを見た人が議論を追いかけやすいように、件の議論へのリンクを貼っておきます。
    http://thread.gmane.org/gmane.comp.lib.boost.devel/218369/focus=218476

    ReplyDelete
  2. お、そういう便利なものがあったのか。

    ReplyDelete
  3. This is very kind of you that you detach the quote from the context.

    Yes, MSVC and Unicode is broken as it does not allow to create UTF-8 text literal as all other compilers around.

    It is HUGE issue whether you like it or not.

    Artyom Beilis.

    ReplyDelete
  4. MSVC doesn't support UTF-8 because it isn't needed.
    Windows use UTF-16.

    ReplyDelete

You can use some HTML elements, such as <b>, <i>, <a>, also, some characters need to be entity referenced such as <, > and & Your comment may need to be confirmed by blog author. Your comment will be published under GFDL 1.3 or later license with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.