{"action":"opened","issue":{"url":"https://api.github.com/repos/ochafik/JavaCL/issues/22","labels_url":"https://api.github.com/repos/ochafik/JavaCL/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ochafik/JavaCL/issues/22/comments","events_url":"https://api.github.com/repos/ochafik/JavaCL/issues/22/events","html_url":"https://github.com/ochafik/JavaCL/issues/22","id":62647722,"number":22,"title":"[JavaCL] System's locale affects source code.","user":{"login":"ochafik","id":273860,"avatar_url":"https://avatars.githubusercontent.com/u/273860?v=3","gravatar_id":"","url":"https://api.github.com/users/ochafik","html_url":"https://github.com/ochafik","followers_url":"https://api.github.com/users/ochafik/followers","following_url":"https://api.github.com/users/ochafik/following{/other_user}","gists_url":"https://api.github.com/users/ochafik/gists{/gist_id}","starred_url":"https://api.github.com/users/ochafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochafik/subscriptions","organizations_url":"https://api.github.com/users/ochafik/orgs","repos_url":"https://api.github.com/users/ochafik/repos","events_url":"https://api.github.com/users/ochafik/events{/privacy}","received_events_url":"https://api.github.com/users/ochafik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ochafik/JavaCL/labels/JavaCL","name":"JavaCL","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T10:10:18Z","updated_at":"2015-03-18T10:10:18Z","closed_at":null,"body":"_From @mcopik on March 19, 2014 18:56_\n\nThe locale settings in Linux systems have an impact on kernel source, which is definitely a bug. When the ```LC_NUMERIC``` is set to a language in which the integral and fractional parts are separated with a comma rather than with a dot (e.g. ```pl_PL.UTF-8```), then the fractional parts of floating-point literals are missing. For example:\r\n```c\r\n//selection is a floating−point value in interval [0 ,1)\r\nif( selection < 0.5) {\r\n    //never selected !\r\n}\r\nelse if ( selection < 1.0) {\r\n    //always selected!\r\n}\r\n```\r\nThis issue doesn't happen when the kernel is executed from a program written in C/C++, using standard OpenCL libraries.\r\nI'm using JavaCL in version 1.0.0-RC3.\n\n_Copied from original issue: ochafik/nativelibs4java#489_"}}