{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3106","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3106/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3106/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3106/events","html_url":"https://github.com/kripken/emscripten/pull/3106","id":52792491,"number":3106,"title":"Let 'allocate' accept static memory that is defined as UTF-8 string with...","user":{"login":"sbalko","id":2197299,"avatar_url":"https://avatars.githubusercontent.com/u/2197299?v=3","gravatar_id":"","url":"https://api.github.com/users/sbalko","html_url":"https://github.com/sbalko","followers_url":"https://api.github.com/users/sbalko/followers","following_url":"https://api.github.com/users/sbalko/following{/other_user}","gists_url":"https://api.github.com/users/sbalko/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalko/subscriptions","organizations_url":"https://api.github.com/users/sbalko/orgs","repos_url":"https://api.github.com/users/sbalko/repos","events_url":"https://api.github.com/users/sbalko/events{/privacy}","received_events_url":"https://api.github.com/users/sbalko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-12-24T03:05:36Z","updated_at":"2015-01-05T21:30:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kripken/emscripten/pulls/3106","html_url":"https://github.com/kripken/emscripten/pull/3106","diff_url":"https://github.com/kripken/emscripten/pull/3106.diff","patch_url":"https://github.com/kripken/emscripten/pull/3106.patch"},"body":"... character codepoints being the byte values\r\n\r\nThis is a small patch to the \"allocate\" function, which let's it accept a UTF-8 string, defining static memory. The Unicode character code points of that string are the byte values in the to-be-allocated memory. For performance reasons, the patch does not check for (non-Latin 1) code points being outside of the 0...255 range. \r\n\r\nIn order to turn the static memory regions that are currently defined as integer arrays, I created a quick-and-dirty script, which needs to be run on the emscripten output: https://gist.github.com/anonymous/74196a36efbb4733a6f5\r\n\r\nThis pull request is now augmented with the changes to settings.js and emscripten.py, which help serializing static memory as UTF-8 string (see https://github.com/kripken/emscripten-fastcomp/pull/57)."},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/68785119","html_url":"https://github.com/kripken/emscripten/pull/3106#issuecomment-68785119","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3106","id":68785119,"user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T21:30:08Z","updated_at":"2015-01-05T21:30:08Z","body":"I don't understand what the corner case is that you are asking me to look into? A short list of concrete steps to follow would be helpful, as there is a lot of history to read at this point in this issue."}}