{"action":"created","issue":{"url":"https://api.github.com/repos/harbour/core/issues/121","repository_url":"https://api.github.com/repos/harbour/core","labels_url":"https://api.github.com/repos/harbour/core/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/harbour/core/issues/121/comments","events_url":"https://api.github.com/repos/harbour/core/issues/121/events","html_url":"https://github.com/harbour/core/issues/121","id":149716874,"number":121,"title":"hb_StrFormat() creates corrupt output in certain cases","user":{"login":"vszakats","id":1446897,"avatar_url":"https://avatars.githubusercontent.com/u/1446897?v=3","gravatar_id":"","url":"https://api.github.com/users/vszakats","html_url":"https://github.com/vszakats","followers_url":"https://api.github.com/users/vszakats/followers","following_url":"https://api.github.com/users/vszakats/following{/other_user}","gists_url":"https://api.github.com/users/vszakats/gists{/gist_id}","starred_url":"https://api.github.com/users/vszakats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vszakats/subscriptions","organizations_url":"https://api.github.com/users/vszakats/orgs","repos_url":"https://api.github.com/users/vszakats/repos","events_url":"https://api.github.com/users/vszakats/events{/privacy}","received_events_url":"https://api.github.com/users/vszakats/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/harbour/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/harbour/core/labels/bug%20(last%20stable)","name":"bug (last stable)","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T09:42:13Z","updated_at":"2016-04-20T09:44:38Z","closed_at":null,"body":"```\r\nlocal a\r\n? hb_StrToHex( a := hb_StrFormat( \"%1\"  ) ), \"|\" + a + \"|\"  // -> 253100 |%1 |\r\n? hb_StrToHex( a := hb_StrFormat( \"%0\"  ) ), \"|\" + a + \"|\"  // -> 253000 |%0 |\r\n? hb_StrToHex( a := hb_StrFormat( \"%1$\" ) ), \"|\" + a + \"|\"  // -> 25312400 |%1$ |\r\n? hb_StrToHex( a := hb_StrFormat( \"%0$\" ) ), \"|\" + a + \"|\"  // -> 253024 |%0$| (correct)\r\n```\r\n\r\nNote the zero bytes at the end of the output strings in the first three cases.\r\n\r\nTested with Harbour 3.0 win/32-bit, 3.2.0dev darwin, 3.4.0dev win/64-bit."},"comment":{"url":"https://api.github.com/repos/harbour/core/issues/comments/212353995","html_url":"https://github.com/harbour/core/issues/121#issuecomment-212353995","issue_url":"https://api.github.com/repos/harbour/core/issues/121","id":212353995,"user":{"login":"vszakats","id":1446897,"avatar_url":"https://avatars.githubusercontent.com/u/1446897?v=3","gravatar_id":"","url":"https://api.github.com/users/vszakats","html_url":"https://github.com/vszakats","followers_url":"https://api.github.com/users/vszakats/followers","following_url":"https://api.github.com/users/vszakats/following{/other_user}","gists_url":"https://api.github.com/users/vszakats/gists{/gist_id}","starred_url":"https://api.github.com/users/vszakats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vszakats/subscriptions","organizations_url":"https://api.github.com/users/vszakats/orgs","repos_url":"https://api.github.com/users/vszakats/repos","events_url":"https://api.github.com/users/vszakats/events{/privacy}","received_events_url":"https://api.github.com/users/vszakats/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T09:44:38Z","updated_at":"2016-04-20T09:44:38Z","body":"/cc @snaiperis"}}