{"action":"closed","issue":{"url":"https://api.github.com/repos/rougier/freetype-gl/issues/79","labels_url":"https://api.github.com/repos/rougier/freetype-gl/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/rougier/freetype-gl/issues/79/comments","events_url":"https://api.github.com/repos/rougier/freetype-gl/issues/79/events","html_url":"https://github.com/rougier/freetype-gl/issues/79","id":104830472,"number":79,"title":"makefont produce error file header","user":{"login":"zjhlogo","id":741718,"avatar_url":"https://avatars.githubusercontent.com/u/741718?v=3","gravatar_id":"","url":"https://api.github.com/users/zjhlogo","html_url":"https://github.com/zjhlogo","followers_url":"https://api.github.com/users/zjhlogo/followers","following_url":"https://api.github.com/users/zjhlogo/following{/other_user}","gists_url":"https://api.github.com/users/zjhlogo/gists{/gist_id}","starred_url":"https://api.github.com/users/zjhlogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjhlogo/subscriptions","organizations_url":"https://api.github.com/users/zjhlogo/orgs","repos_url":"https://api.github.com/users/zjhlogo/repos","events_url":"https://api.github.com/users/zjhlogo/events{/privacy}","received_events_url":"https://api.github.com/users/zjhlogo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-04T04:58:32Z","updated_at":"2016-01-04T11:26:50Z","closed_at":"2016-01-04T11:26:50Z","body":"print wide chars using char* parameters,\r\nmakefont.c:285 wprintf( L\"Font filename              : %s\\n\", font_filename );\r\n\r\nI don't know how to create a pull request, so just paste my solution here for reference(need C++11 support):\r\n\r\n\tstd::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> utf16conv;\r\n\tstd::u16string wfont_filename = utf16conv.from_bytes(font_filename);\r\n\tstd::u16string wheader_filename = utf16conv.from_bytes(header_filename);\r\n\tstd::u16string wvariable_name = utf16conv.from_bytes(variable_name);\r\n\r\n\twprintf( L\"Font filename              : %s\\n\", wfont_filename.data());\r\n\twprintf( L\"Header filename            : %s\\n\", wheader_filename.data() );\r\n\twprintf( L\"Variable name              : %s\\n\", wvariable_name.data() );\r\n"}}