{"action":"created","issue":{"url":"https://api.github.com/repos/gap-system/gap/issues/344","labels_url":"https://api.github.com/repos/gap-system/gap/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/gap-system/gap/issues/344/comments","events_url":"https://api.github.com/repos/gap-system/gap/issues/344/events","html_url":"https://github.com/gap-system/gap/issues/344","id":115557110,"number":344,"title":"Cygwin reports foreign localisation of Windows","user":{"login":"alex-konovalov","id":5751387,"avatar_url":"https://avatars.githubusercontent.com/u/5751387?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-konovalov","html_url":"https://github.com/alex-konovalov","followers_url":"https://api.github.com/users/alex-konovalov/followers","following_url":"https://api.github.com/users/alex-konovalov/following{/other_user}","gists_url":"https://api.github.com/users/alex-konovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-konovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-konovalov/subscriptions","organizations_url":"https://api.github.com/users/alex-konovalov/orgs","repos_url":"https://api.github.com/users/alex-konovalov/repos","events_url":"https://api.github.com/users/alex-konovalov/events{/privacy}","received_events_url":"https://api.github.com/users/alex-konovalov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-06T18:05:01Z","updated_at":"2015-11-06T19:43:38Z","closed_at":null,"body":"This happens in the master branch when it GAP is compiled and run in the Cygwin shell:\r\n\r\n```\r\ntesting: /home/jenkins/gap/tst/testinstall/dir.tst\r\n########> Diff in /home/jenkins/gap/tst/testinstall/dir.tst, line 11:\r\n# Input is:\r\nDirectoryHome() = Directory(\"~\");\r\n# Expected output:\r\ntrue\r\n# But found:\r\n#I  Foreign Localization of Windows\r\nNeed name of 'My Documents' folder[ \".\", \"..\", \".bashrc\", \".bash_history\", \".b\\\r\nash_profile\", \".inputrc\",\r\n  \".mkshrc\", \".profile\", \".ssh\", \"gap\", \"gap4r7\" ]\r\ntrue\r\n########\r\n########> Diff in /home/jenkins/gap/tst/testinstall/dir.tst, line 13:\r\n# Input is:\r\nForAll([DirectoryHome, DirectoryDesktop,DirectoryCurrent],\r\n          x -> (IsDirectoryPath(x()) and IsDirectory(x())) );\r\n# Expected output:\r\ntrue\r\n# But found:\r\n#I  Foreign Localization of Windows\r\nNeed name of 'My Documents' folder[ \".\", \"..\", \".bashrc\", \".bash_history\", \".b\\\r\nash_profile\", \".inputrc\",\r\n  \".mkshrc\", \".profile\", \".ssh\", \"gap\", \"gap4r7\" ]\r\n#I  Foreign Localization of Windows\r\nNeed name of 'My Documents' folder[ \".\", \"..\", \".bashrc\", \".bash_history\", \".b\\\r\nash_profile\", \".inputrc\",\r\n  \".mkshrc\", \".profile\", \".ssh\", \"gap\", \"gap4r7\" ]\r\n#I  Foreign Localization of Windows\r\nNeed name of 'Desktop' folder[ \".\", \"..\", \".bashrc\", \".bash_history\", \".bash_p\\\r\nrofile\", \".inputrc\",\r\n  \".mkshrc\", \".profile\", \".ssh\", \"gap\", \"gap4r7\" ]\r\n#I  Foreign Localization of Windows\r\nNeed name of 'Desktop' folder[ \".\", \"..\", \".bashrc\", \".bash_history\", \".bash_p\\\r\nrofile\", \".inputrc\",\r\n  \".mkshrc\", \".profile\", \".ssh\", \"gap\", \"gap4r7\" ]\r\ntrue\r\n########\r\n```"},"comment":{"url":"https://api.github.com/repos/gap-system/gap/issues/comments/154513025","html_url":"https://github.com/gap-system/gap/issues/344#issuecomment-154513025","issue_url":"https://api.github.com/repos/gap-system/gap/issues/344","id":154513025,"user":{"login":"alex-konovalov","id":5751387,"avatar_url":"https://avatars.githubusercontent.com/u/5751387?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-konovalov","html_url":"https://github.com/alex-konovalov","followers_url":"https://api.github.com/users/alex-konovalov/followers","following_url":"https://api.github.com/users/alex-konovalov/following{/other_user}","gists_url":"https://api.github.com/users/alex-konovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-konovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-konovalov/subscriptions","organizations_url":"https://api.github.com/users/alex-konovalov/orgs","repos_url":"https://api.github.com/users/alex-konovalov/repos","events_url":"https://api.github.com/users/alex-konovalov/events{/privacy}","received_events_url":"https://api.github.com/users/alex-konovalov/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T19:43:38Z","updated_at":"2015-11-06T19:43:38Z","body":"I think in Cygwin shell it should definitely behave like in Linux, not like in Windows. That's the whole point of running GAP in Cygwin shell instead of starting it with gap.bat. Hence I consider \r\n```\r\ngap> Directory(\"~\");\r\ndir(\"/home/jenkins/\")\r\n```\r\nto be correct and \r\n```\r\ngap> DirectoryHome();\r\n#I  Foreign Localization of Windows\r\nNeed name of 'My Documents' folder[ \".\", \"..\", \".bashrc\", \".bash_history\", \".bash_profile\", \".inputrc\",\r\n  \".mkshrc\", \".profile\", \".ssh\", \"gap\", \"gap4r7\" ]\r\n```\r\nnot. \r\n\r\n`DirectoryHome` (and `DirectoryDesktop`) were added IIRC by @hulpke for GAP 4.5 to make it more user-friendly for Windows user and just uses hardcoded names of these dedicated folders in various localisation of Windows, e.g.\r\n```\r\n    a:=First([\"Desktop\",\r\n\t      \"Bureau\", #fr\r\n\t      \"Bureaublad\", #nl\r\n\t      \"Escritorio\", #es\r\n```"}}