C 0x中没有Unicode流吗?为什么?

今天我发现,C标准委员会在第二次修订中驳回了C 0x中的Unicode流支持.有关更多信息,请参阅 this问题.

根据this文件

The rationale for leaving out stream specializations of the two new types was that streams of non-char types have not attracted wide usage,so it is not clear that there is a real need for doubling the number of specializations of this very complicated machinery.

this采访Stroustrup:

ObvIoUsly,we ought to have Unicode streams and other much extended Unicode support in the standard library. The committee knew that but didn’t have anyone with the skills and time to do the work,so unfortunately,this is one of the many areas where you have to look for “third party” support.

我不是Unicode的专家,我想知道为什么实现Unicode流是如此困难?有什么问题呢?

解决方法

你引用的第一段告诉你:并非特别是Unicode流比其他流更困难,因为iostream通常非常复杂.因此,实现Unicode iostream很难,因为它们是Unicode,但因为它们是iostream.

相关文章

本程序的编译和运行环境如下(如果有运行方面的问题欢迎在评...
水了一学期的院选修,万万没想到期末考试还有比较硬核的编程...
补充一下,先前文章末尾给出的下载链接的完整代码含有部分C&...
思路如标题所说采用模N取余法,难点是这个除法过程如何实现。...
本篇博客有更新!!!更新后效果图如下: 文章末尾的完整代码...
刚开始学习模块化程序设计时,估计大家都被形参和实参搞迷糊...