{"action":"created","comment":{"url":"https://api.github.com/repos/google/cctz/pulls/comments/47846581","id":47846581,"diff_hunk":"@@ -626,9 +630,22 @@ bool TimeZoneInfo::Load(const std::string& name) {\n     path += name;\n   }\n \n+#ifdef _WIN32 || _WIN64\n+  // Switching Linux-path to Windows-path\n+  size_t pos = 0;\n+  while ((pos = path.find(\"/\", pos)) != std::string::npos) {\n+    path.replace(pos, 1, \"\\\\\");\n+    pos += 2;\n+  }\n+#endif // _WIN32 || _WIN64\n+\n   // Load the time-zone data.\n   bool loaded = false;\n+#ifdef _WIN32 || _WIN64\n+  if (FILE* fp = fopen(path.c_str(), \"rb\")) {","path":"src/cctz_info.cc","position":27,"original_position":27,"commit_id":"47377e831d1fae163417a39e250f75cba00607fe","original_commit_id":"47377e831d1fae163417a39e250f75cba00607fe","user":{"login":"mwinterb","id":1081839,"avatar_url":"https://avatars.githubusercontent.com/u/1081839?v=3","gravatar_id":"","url":"https://api.github.com/users/mwinterb","html_url":"https://github.com/mwinterb","followers_url":"https://api.github.com/users/mwinterb/followers","following_url":"https://api.github.com/users/mwinterb/following{/other_user}","gists_url":"https://api.github.com/users/mwinterb/gists{/gist_id}","starred_url":"https://api.github.com/users/mwinterb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwinterb/subscriptions","organizations_url":"https://api.github.com/users/mwinterb/orgs","repos_url":"https://api.github.com/users/mwinterb/repos","events_url":"https://api.github.com/users/mwinterb/events{/privacy}","received_events_url":"https://api.github.com/users/mwinterb/received_events","type":"User","site_admin":false},"body":"Can't \"rb\" be used as the open mode regardless of platform to avoid cluttering this part with the #ifdef?","created_at":"2015-12-16T22:55:08Z","updated_at":"2015-12-16T22:55:08Z","html_url":"https://github.com/google/cctz/pull/15#discussion_r47846581","pull_request_url":"https://api.github.com/repos/google/cctz/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/google/cctz/pulls/comments/47846581"},"html":{"href":"https://github.com/google/cctz/pull/15#discussion_r47846581"},"pull_request":{"href":"https://api.github.com/repos/google/cctz/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/google/cctz/pulls/15","id":53353927,"html_url":"https://github.com/google/cctz/pull/15","diff_url":"https://github.com/google/cctz/pull/15.diff","patch_url":"https://github.com/google/cctz/pull/15.patch","issue_url":"https://api.github.com/repos/google/cctz/issues/15","number":15,"state":"open","locked":false,"title":"MS Visual Studio support is realized.","user":{"login":"SemenMartynov","id":1230054,"avatar_url":"https://avatars.githubusercontent.com/u/1230054?v=3","gravatar_id":"","url":"https://api.github.com/users/SemenMartynov","html_url":"https://github.com/SemenMartynov","followers_url":"https://api.github.com/users/SemenMartynov/followers","following_url":"https://api.github.com/users/SemenMartynov/following{/other_user}","gists_url":"https://api.github.com/users/SemenMartynov/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenMartynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenMartynov/subscriptions","organizations_url":"https://api.github.com/users/SemenMartynov/orgs","repos_url":"https://api.github.com/users/SemenMartynov/repos","events_url":"https://api.github.com/users/SemenMartynov/events{/privacy}","received_events_url":"https://api.github.com/users/SemenMartynov/received_events","type":"User","site_admin":false},"body":"It is possible to use this library with tzdata on MS Windows. Path to the tzdata should be set via environment variables.","created_at":"2015-12-11T04:58:50Z","updated_at":"2015-12-16T22:55:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34421ac3faa258a06ab55419f6a609c638ec1bc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/cctz/pulls/15/commits","review_comments_url":"https://api.github.com/repos/google/cctz/pulls/15/comments","review_comment_url":"https://api.github.com/repos/google/cctz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/cctz/issues/15/comments","statuses_url":"https://api.github.com/repos/google/cctz/statuses/47377e831d1fae163417a39e250f75cba00607fe","head":{"label":"SemenMartynov:feature-support-msvs","ref":"feature-support-msvs","sha":"47377e831d1fae163417a39e250f75cba00607fe","user":{"login":"SemenMartynov","id":1230054,"avatar_url":"https://avatars.githubusercontent.com/u/1230054?v=3","gravatar_id":"","url":"https://api.github.com/users/SemenMartynov","html_url":"https://github.com/SemenMartynov","followers_url":"https://api.github.com/users/SemenMartynov/followers","following_url":"https://api.github.com/users/SemenMartynov/following{/other_user}","gists_url":"https://api.github.com/users/SemenMartynov/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenMartynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenMartynov/subscriptions","organizations_url":"https://api.github.com/users/SemenMartynov/orgs","repos_url":"https://api.github.com/users/SemenMartynov/repos","events_url":"https://api.github.com/users/SemenMartynov/events{/privacy}","received_events_url":"https://api.github.com/users/SemenMartynov/received_events","type":"User","site_admin":false},"repo":{"id":47805209,"name":"cctz","full_name":"SemenMartynov/cctz","owner":{"login":"SemenMartynov","id":1230054,"avatar_url":"https://avatars.githubusercontent.com/u/1230054?v=3","gravatar_id":"","url":"https://api.github.com/users/SemenMartynov","html_url":"https://github.com/SemenMartynov","followers_url":"https://api.github.com/users/SemenMartynov/followers","following_url":"https://api.github.com/users/SemenMartynov/following{/other_user}","gists_url":"https://api.github.com/users/SemenMartynov/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenMartynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenMartynov/subscriptions","organizations_url":"https://api.github.com/users/SemenMartynov/orgs","repos_url":"https://api.github.com/users/SemenMartynov/repos","events_url":"https://api.github.com/users/SemenMartynov/events{/privacy}","received_events_url":"https://api.github.com/users/SemenMartynov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SemenMartynov/cctz","description":"CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone.","fork":true,"url":"https://api.github.com/repos/SemenMartynov/cctz","forks_url":"https://api.github.com/repos/SemenMartynov/cctz/forks","keys_url":"https://api.github.com/repos/SemenMartynov/cctz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SemenMartynov/cctz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SemenMartynov/cctz/teams","hooks_url":"https://api.github.com/repos/SemenMartynov/cctz/hooks","issue_events_url":"https://api.github.com/repos/SemenMartynov/cctz/issues/events{/number}","events_url":"https://api.github.com/repos/SemenMartynov/cctz/events","assignees_url":"https://api.github.com/repos/SemenMartynov/cctz/assignees{/user}","branches_url":"https://api.github.com/repos/SemenMartynov/cctz/branches{/branch}","tags_url":"https://api.github.com/repos/SemenMartynov/cctz/tags","blobs_url":"https://api.github.com/repos/SemenMartynov/cctz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SemenMartynov/cctz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SemenMartynov/cctz/git/refs{/sha}","trees_url":"https://api.github.com/repos/SemenMartynov/cctz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SemenMartynov/cctz/statuses/{sha}","languages_url":"https://api.github.com/repos/SemenMartynov/cctz/languages","stargazers_url":"https://api.github.com/repos/SemenMartynov/cctz/stargazers","contributors_url":"https://api.github.com/repos/SemenMartynov/cctz/contributors","subscribers_url":"https://api.github.com/repos/SemenMartynov/cctz/subscribers","subscription_url":"https://api.github.com/repos/SemenMartynov/cctz/subscription","commits_url":"https://api.github.com/repos/SemenMartynov/cctz/commits{/sha}","git_commits_url":"https://api.github.com/repos/SemenMartynov/cctz/git/commits{/sha}","comments_url":"https://api.github.com/repos/SemenMartynov/cctz/comments{/number}","issue_comment_url":"https://api.github.com/repos/SemenMartynov/cctz/issues/comments{/number}","contents_url":"https://api.github.com/repos/SemenMartynov/cctz/contents/{+path}","compare_url":"https://api.github.com/repos/SemenMartynov/cctz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SemenMartynov/cctz/merges","archive_url":"https://api.github.com/repos/SemenMartynov/cctz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SemenMartynov/cctz/downloads","issues_url":"https://api.github.com/repos/SemenMartynov/cctz/issues{/number}","pulls_url":"https://api.github.com/repos/SemenMartynov/cctz/pulls{/number}","milestones_url":"https://api.github.com/repos/SemenMartynov/cctz/milestones{/number}","notifications_url":"https://api.github.com/repos/SemenMartynov/cctz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SemenMartynov/cctz/labels{/name}","releases_url":"https://api.github.com/repos/SemenMartynov/cctz/releases{/id}","created_at":"2015-12-11T04:31:21Z","updated_at":"2015-12-11T04:31:22Z","pushed_at":"2015-12-11T04:54:09Z","git_url":"git://github.com/SemenMartynov/cctz.git","ssh_url":"git@github.com:SemenMartynov/cctz.git","clone_url":"https://github.com/SemenMartynov/cctz.git","svn_url":"https://github.com/SemenMartynov/cctz","homepage":"","size":97,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"cf9fd7b79bcccfa332aadc7a71cd3454faf9c635","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":42454583,"name":"cctz","full_name":"google/cctz","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/cctz","description":"CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone.","fork":false,"url":"https://api.github.com/repos/google/cctz","forks_url":"https://api.github.com/repos/google/cctz/forks","keys_url":"https://api.github.com/repos/google/cctz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/cctz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/cctz/teams","hooks_url":"https://api.github.com/repos/google/cctz/hooks","issue_events_url":"https://api.github.com/repos/google/cctz/issues/events{/number}","events_url":"https://api.github.com/repos/google/cctz/events","assignees_url":"https://api.github.com/repos/google/cctz/assignees{/user}","branches_url":"https://api.github.com/repos/google/cctz/branches{/branch}","tags_url":"https://api.github.com/repos/google/cctz/tags","blobs_url":"https://api.github.com/repos/google/cctz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/cctz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/cctz/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/cctz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/cctz/statuses/{sha}","languages_url":"https://api.github.com/repos/google/cctz/languages","stargazers_url":"https://api.github.com/repos/google/cctz/stargazers","contributors_url":"https://api.github.com/repos/google/cctz/contributors","subscribers_url":"https://api.github.com/repos/google/cctz/subscribers","subscription_url":"https://api.github.com/repos/google/cctz/subscription","commits_url":"https://api.github.com/repos/google/cctz/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/cctz/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/cctz/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/cctz/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/cctz/contents/{+path}","compare_url":"https://api.github.com/repos/google/cctz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/cctz/merges","archive_url":"https://api.github.com/repos/google/cctz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/cctz/downloads","issues_url":"https://api.github.com/repos/google/cctz/issues{/number}","pulls_url":"https://api.github.com/repos/google/cctz/pulls{/number}","milestones_url":"https://api.github.com/repos/google/cctz/milestones{/number}","notifications_url":"https://api.github.com/repos/google/cctz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/cctz/labels{/name}","releases_url":"https://api.github.com/repos/google/cctz/releases{/id}","created_at":"2015-09-14T14:42:18Z","updated_at":"2015-12-15T02:03:23Z","pushed_at":"2015-12-14T01:07:41Z","git_url":"git://github.com/google/cctz.git","ssh_url":"git@github.com:google/cctz.git","clone_url":"https://github.com/google/cctz.git","svn_url":"https://github.com/google/cctz","homepage":"","size":101,"stargazers_count":81,"watchers_count":81,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/cctz/pulls/15"},"html":{"href":"https://github.com/google/cctz/pull/15"},"issue":{"href":"https://api.github.com/repos/google/cctz/issues/15"},"comments":{"href":"https://api.github.com/repos/google/cctz/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/google/cctz/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/google/cctz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/cctz/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/google/cctz/statuses/47377e831d1fae163417a39e250f75cba00607fe"}}}}