{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/176","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/176/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/176/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/176","id":173702573,"number":176,"title":"Formatting problem with characters like ☺☻♦","user":{"login":"Suraj-Yadav","id":6687881,"avatar_url":"https://avatars.githubusercontent.com/u/6687881?v=3","gravatar_id":"","url":"https://api.github.com/users/Suraj-Yadav","html_url":"https://github.com/Suraj-Yadav","followers_url":"https://api.github.com/users/Suraj-Yadav/followers","following_url":"https://api.github.com/users/Suraj-Yadav/following{/other_user}","gists_url":"https://api.github.com/users/Suraj-Yadav/gists{/gist_id}","starred_url":"https://api.github.com/users/Suraj-Yadav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suraj-Yadav/subscriptions","organizations_url":"https://api.github.com/users/Suraj-Yadav/orgs","repos_url":"https://api.github.com/users/Suraj-Yadav/repos","events_url":"https://api.github.com/users/Suraj-Yadav/events{/privacy}","received_events_url":"https://api.github.com/users/Suraj-Yadav/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/Language%20Service","name":"Language Service","color":"c5def5"}],"state":"closed","locked":false,"assignee":{"login":"sean-mcmanus","id":19859882,"avatar_url":"https://avatars.githubusercontent.com/u/19859882?v=3","gravatar_id":"","url":"https://api.github.com/users/sean-mcmanus","html_url":"https://github.com/sean-mcmanus","followers_url":"https://api.github.com/users/sean-mcmanus/followers","following_url":"https://api.github.com/users/sean-mcmanus/following{/other_user}","gists_url":"https://api.github.com/users/sean-mcmanus/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-mcmanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-mcmanus/subscriptions","organizations_url":"https://api.github.com/users/sean-mcmanus/orgs","repos_url":"https://api.github.com/users/sean-mcmanus/repos","events_url":"https://api.github.com/users/sean-mcmanus/events{/privacy}","received_events_url":"https://api.github.com/users/sean-mcmanus/received_events","type":"User","site_admin":false},"assignees":[{"login":"sean-mcmanus","id":19859882,"avatar_url":"https://avatars.githubusercontent.com/u/19859882?v=3","gravatar_id":"","url":"https://api.github.com/users/sean-mcmanus","html_url":"https://github.com/sean-mcmanus","followers_url":"https://api.github.com/users/sean-mcmanus/followers","following_url":"https://api.github.com/users/sean-mcmanus/following{/other_user}","gists_url":"https://api.github.com/users/sean-mcmanus/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-mcmanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-mcmanus/subscriptions","organizations_url":"https://api.github.com/users/sean-mcmanus/orgs","repos_url":"https://api.github.com/users/sean-mcmanus/repos","events_url":"https://api.github.com/users/sean-mcmanus/events{/privacy}","received_events_url":"https://api.github.com/users/sean-mcmanus/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-08-29T06:06:30Z","updated_at":"2016-08-31T21:16:03Z","closed_at":"2016-08-31T21:16:03Z","body":"Consider the following code\r\n```cpp\r\n#include <iostream>\r\nint main() {\r\nstd::cout << \"Hello World\\n\";\r\nreturn 0;\r\n}\r\n```\r\nAdding ♦ in the string and formatting the code, I get\r\n```cpp\r\n#include <iostream>\r\nint main() {\r\n\tstd::cout << \"Hello ♦ World\\n\";\r\n\treturn 0;\r\n}\r\n```\r\nRemoving the ♦ and formatting it again, I get\r\n```cpp\r\n#include <iostream>\r\nint main() {\r\n\tstd::cout << \"Hello�� World\\n\";\r\n\treturn 0;\r\n}\r\n```\r\nAfter this each format action doubles the number of �.\r\n\r\nUsing clang-format directly on the file does not have this problem.\r\n\r\nVersion: 1.5.0-insider\r\nCommit: 31f1acb8c82b8a19256d5d56127d3f81edce3745\r\nOS: Windows 10"}}
{"actor":{"display_login":"Suraj-Yadav"}}