{"categories":["Debian","Unicode"],"provider_url":"https://hatena.blog","type":"rich","version":"1.0","height":"190","description":"glibc \u306e wcwidth() \u306e\u52d5\u4f5c\u3092\u81ea\u5206\u306e\u624b\u3067\u304d\u3061\u3093\u3068\u691c\u8a3c\u3057\u305f\u3053\u3068\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u5b9f\u9a13\u3057\u3066\u307f\u305f\u3002\u5bfe\u8c61\u30d0\u30fc\u30b8\u30e7\u30f3\u306f Debian lenny \u306b\u542b\u307e\u308c\u3066\u3044\u305f 2.7-18\u3002 \u5b9f\u9a13\u306b\u4f7f\u3063\u305f\u306e\u306f\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3002 #define _XOPEN_SOURCE #include <stdio.h> #include <locale.h> #include <wchar.h> void print_wcwidth(wchar_t c) { printf(\"wcwidth('%lc') == %d\\n\", c, wcwidth(c)); } int main() { setlocale(LC_CTYP\u2026","published":"2009-03-04 00:00:01","provider_name":"Hatena Blog","url":"https://macks.hatenadiary.org/entry/20090304/p2","image_url":null,"author_url":"https://blog.hatena.ne.jp/macks/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmacks.hatenadiary.org%2Fentry%2F20090304%2Fp2\" title=\" glibc \u306e wcwidth() \u306e\u300c\u66d6\u6627\u306a\u6587\u5b57\u5e45\u300d\u306b\u3064\u3044\u3066\u306e\u52d5\u4f5c - diary of a madman\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"diary of a madman","title":" glibc \u306e wcwidth() \u306e\u300c\u66d6\u6627\u306a\u6587\u5b57\u5e45\u300d\u306b\u3064\u3044\u3066\u306e\u52d5\u4f5c","author_name":"macks","blog_url":"https://macks.hatenadiary.org/"}