{"action":"created","issue":{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/785","labels_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/785/comments","events_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/785/events","html_url":"https://github.com/CorsixTH/CorsixTH/issues/785","id":93092890,"number":785,"title":"Unicode languages do not work","user":{"login":"adam900710","id":460269,"avatar_url":"https://avatars.githubusercontent.com/u/460269?v=3","gravatar_id":"","url":"https://api.github.com/users/adam900710","html_url":"https://github.com/adam900710","followers_url":"https://api.github.com/users/adam900710/followers","following_url":"https://api.github.com/users/adam900710/following{/other_user}","gists_url":"https://api.github.com/users/adam900710/gists{/gist_id}","starred_url":"https://api.github.com/users/adam900710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam900710/subscriptions","organizations_url":"https://api.github.com/users/adam900710/orgs","repos_url":"https://api.github.com/users/adam900710/repos","events_url":"https://api.github.com/users/adam900710/events{/privacy}","received_events_url":"https://api.github.com/users/adam900710/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/labels/Priority-Critical","name":"Priority-Critical","color":"fbE705"},{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/labels/State-Investigating","name":"State-Investigating","color":"308b99"},{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/labels/Type-Regression","name":"Type-Regression","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/milestones/3","html_url":"https://github.com/CorsixTH/CorsixTH/milestones/0.50","labels_url":"https://api.github.com/repos/CorsixTH/CorsixTH/milestones/3/labels","id":655386,"number":3,"title":"0.50","description":null,"creator":{"login":"mrtnptrs","id":4948213,"avatar_url":"https://avatars.githubusercontent.com/u/4948213?v=3","gravatar_id":"","url":"https://api.github.com/users/mrtnptrs","html_url":"https://github.com/mrtnptrs","followers_url":"https://api.github.com/users/mrtnptrs/followers","following_url":"https://api.github.com/users/mrtnptrs/following{/other_user}","gists_url":"https://api.github.com/users/mrtnptrs/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtnptrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtnptrs/subscriptions","organizations_url":"https://api.github.com/users/mrtnptrs/orgs","repos_url":"https://api.github.com/users/mrtnptrs/repos","events_url":"https://api.github.com/users/mrtnptrs/events{/privacy}","received_events_url":"https://api.github.com/users/mrtnptrs/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2014-05-11T16:51:05Z","updated_at":"2015-07-08T15:35:46Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-07-05T09:03:03Z","updated_at":"2015-07-09T00:56:04Z","closed_at":null,"body":"Although simplified_chinese.lua and traditional_chinese.lua is in \"/usr/share/CorsixTH/Lua/languages\" directory, I still can't select these two languages.\r\n\r\nI installed the requested libs, especially freetype2 mentioned by the wiki, before compiling, but still not work.\r\n\r\nAny clue?\r\n\r\nThanks. \r\n"},"comment":{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/comments/119773087","html_url":"https://github.com/CorsixTH/CorsixTH/issues/785#issuecomment-119773087","issue_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/785","id":119773087,"user":{"login":"TheCycoONE","id":823433,"avatar_url":"https://avatars.githubusercontent.com/u/823433?v=3","gravatar_id":"","url":"https://api.github.com/users/TheCycoONE","html_url":"https://github.com/TheCycoONE","followers_url":"https://api.github.com/users/TheCycoONE/followers","following_url":"https://api.github.com/users/TheCycoONE/following{/other_user}","gists_url":"https://api.github.com/users/TheCycoONE/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCycoONE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCycoONE/subscriptions","organizations_url":"https://api.github.com/users/TheCycoONE/orgs","repos_url":"https://api.github.com/users/TheCycoONE/repos","events_url":"https://api.github.com/users/TheCycoONE/events{/privacy}","received_events_url":"https://api.github.com/users/TheCycoONE/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T00:56:04Z","updated_at":"2015-07-09T00:56:04Z","body":"Full backtrace:\r\n\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x000000000047c996 in THRenderTarget::createTexture (this=0x0, iWidth=37, \r\n    iHeight=13, pPixels=0x1b02e90)\r\n    at /home/stephen/CorsixTH/CorsixTH/Src/th_gfx_sdl.cpp:635\r\n635\t    SDL_Texture *pTexture = SDL_CreateTexture(m_pRenderer, m_pFormat->format, SDL_TEXTUREACCESS_STATIC, iWidth, iHeight);\r\n(gdb) bt\r\n#0  0x000000000047c996 in THRenderTarget::createTexture (this=0x0, iWidth=37, \r\n    iHeight=13, pPixels=0x1b02e90)\r\n    at /home/stephen/CorsixTH/CorsixTH/Src/th_gfx_sdl.cpp:635\r\n#1  0x000000000047ed7b in THFreeTypeFont::_makeTexture (this=0x18829c8, \r\n    pEventualCanvas=0x0, pCacheEntry=0x1882d60)\r\n    at /home/stephen/CorsixTH/CorsixTH/Src/th_gfx_sdl.cpp:1538\r\n#2  0x000000000046c456 in THFreeTypeFont::drawTextWrapped (this=0x18829c8, \r\n    pCanvas=0x0, sMessage=0x15c4948 \"Magyar\", iMessageLength=6, iX=0, iY=0, \r\n    iWidth=2147483647, pResultingWidth=0x7fffffffe0cc, pLastX=0x0, \r\n    eAlign=Align_Left)\r\n    at /home/stephen/CorsixTH/CorsixTH/Src/th_gfx_font.cpp:734\r\n#3  0x000000000046b4f1 in THFreeTypeFont::getTextSize (this=0x18829c8, \r\n    sMessage=0x15c4948 \"Magyar\", iMessageLength=6, pX=0x7fffffffe0cc, \r\n    pY=0x7fffffffe0c8)\r\n    at /home/stephen/CorsixTH/CorsixTH/Src/th_gfx_font.cpp:489\r\n#4  0x0000000000440224 in l_font_draw (L=0x13bf298)\r\n    at /home/stephen/CorsixTH/CorsixTH/Src/th_lua_gfx.cpp:346\r\n#5  0x00007ffff768f950 in ?? () from /usr/lib/liblua.so.5.3\r\n#6  0x00007ffff769c7bd in ?? () from /usr/lib/liblua.so.5.3\r\n#7  0x00007ffff768fbc0 in ?? () from /usr/lib/liblua.so.5.3\r\n#8  0x00007ffff768f2b2 in ?? () from /usr/lib/liblua.so.5.3\r\n#9  0x00007ffff768fde4 in lua_resume () from /usr/lib/liblua.so.5.3\r\n#10 0x00000000004704fe in l_mainloop (L=0x6df718)\r\n```\r\n\r\nAs discussed on irc, we should be caching a surface instead of a texture so the renderer is not necessary."}}