{"action":"opened","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/1640","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/1640/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/1640/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/1640/events","html_url":"https://github.com/conan-io/conan/issues/1640","id":251780243,"number":1640,"title":"CMake generator creates an invalid file if user_info var has backslashes","user":{"login":"mpdelbuono","id":830109,"avatar_url":"https://avatars3.githubusercontent.com/u/830109?v=4","gravatar_id":"","url":"https://api.github.com/users/mpdelbuono","html_url":"https://github.com/mpdelbuono","followers_url":"https://api.github.com/users/mpdelbuono/followers","following_url":"https://api.github.com/users/mpdelbuono/following{/other_user}","gists_url":"https://api.github.com/users/mpdelbuono/gists{/gist_id}","starred_url":"https://api.github.com/users/mpdelbuono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpdelbuono/subscriptions","organizations_url":"https://api.github.com/users/mpdelbuono/orgs","repos_url":"https://api.github.com/users/mpdelbuono/repos","events_url":"https://api.github.com/users/mpdelbuono/events{/privacy}","received_events_url":"https://api.github.com/users/mpdelbuono/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-21T21:47:30Z","updated_at":"2017-08-21T21:47:30Z","closed_at":null,"body":"Consider a recipe that does something like:\r\n```python\r\ndef package_info(self):\r\n   self.user_info.var = self.package_folder\r\n```\r\n\r\nOn Windows, the CMake generator of a consumer of that package would create a CMake variable CONAN_USER_XXXX_var that contains unescaped backslashes, which is illegal. The CMake generator should escape backslashes it encounters.\r\n\r\n(I believe I already have a fix for this issue, but I am still verifying it.)"}}
{"actor":{"display_login":"mpdelbuono"}}