{"action":"created","issue":{"url":"https://api.github.com/repos/ashtuchkin/iconv-lite/issues/104","labels_url":"https://api.github.com/repos/ashtuchkin/iconv-lite/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/ashtuchkin/iconv-lite/issues/104/comments","events_url":"https://api.github.com/repos/ashtuchkin/iconv-lite/issues/104/events","html_url":"https://github.com/ashtuchkin/iconv-lite/issues/104","id":104691773,"number":104,"title":"Broken result when decoding large files","user":{"login":"bit-seq","id":6142849,"avatar_url":"https://avatars.githubusercontent.com/u/6142849?v=3","gravatar_id":"","url":"https://api.github.com/users/bit-seq","html_url":"https://github.com/bit-seq","followers_url":"https://api.github.com/users/bit-seq/followers","following_url":"https://api.github.com/users/bit-seq/following{/other_user}","gists_url":"https://api.github.com/users/bit-seq/gists{/gist_id}","starred_url":"https://api.github.com/users/bit-seq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bit-seq/subscriptions","organizations_url":"https://api.github.com/users/bit-seq/orgs","repos_url":"https://api.github.com/users/bit-seq/repos","events_url":"https://api.github.com/users/bit-seq/events{/privacy}","received_events_url":"https://api.github.com/users/bit-seq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T13:21:21Z","updated_at":"2015-09-04T03:40:43Z","closed_at":null,"body":"With iconv-lite I encountered large files to cause problems on decoding. There aren't any thrown errors, but the decoded result is broken at least by stripped lines at the file's end.\r\nI cut it down to a [mcve](/bit-seq/iconv-lite-mcve): The issue is given on file [`too-large.html`](/bit-seq/iconv-lite-mcve/blob/master/too-large.html) (507kb), whereby file [`large.html`](/bit-seq/iconv-lite-mcve/blob/master/large.html) (501kb) decodes and encodes correctly.\r\n\r\nI also added a [zip-archive](/bit-seq/iconv-lite-mcve/blob/master/iconv-lite-mcve.zip) including the folder `node_modules`.\r\n\r\nFor my project I switched to module [node-iconv](/bnoordhuis/node-iconv)."},"comment":{"url":"https://api.github.com/repos/ashtuchkin/iconv-lite/issues/comments/137641585","html_url":"https://github.com/ashtuchkin/iconv-lite/issues/104#issuecomment-137641585","issue_url":"https://api.github.com/repos/ashtuchkin/iconv-lite/issues/104","id":137641585,"user":{"login":"ashtuchkin","id":627997,"avatar_url":"https://avatars.githubusercontent.com/u/627997?v=3","gravatar_id":"","url":"https://api.github.com/users/ashtuchkin","html_url":"https://github.com/ashtuchkin","followers_url":"https://api.github.com/users/ashtuchkin/followers","following_url":"https://api.github.com/users/ashtuchkin/following{/other_user}","gists_url":"https://api.github.com/users/ashtuchkin/gists{/gist_id}","starred_url":"https://api.github.com/users/ashtuchkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashtuchkin/subscriptions","organizations_url":"https://api.github.com/users/ashtuchkin/orgs","repos_url":"https://api.github.com/users/ashtuchkin/repos","events_url":"https://api.github.com/users/ashtuchkin/events{/privacy}","received_events_url":"https://api.github.com/users/ashtuchkin/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T03:40:43Z","updated_at":"2015-09-04T03:40:43Z","body":"Just tried it and I have a different `too-large-conv.html` produced. What version of node do you use?"}}