TerraME / terrame

TerraME is a programming environment for spatial dynamical modelling
www.terrame.org
GNU Lesser General Public License v3.0
35 stars 13 forks source link

Mac does not allow get current locale #2249

Open avancinirodrigo opened 5 years ago

avancinirodrigo commented 5 years ago

It is not possible get the current locale on Mac: https://stackoverflow.com/questions/7165108/in-os-x-lion-lang-is-not-set-to-utf-8-how-to-fix-it. With that, it does not recognize latin characters #2248. Mac also does not work with hexadecimal characters, but it works with utf8 characters. Unfortunately, the system does not keep the consistence of the paths, because its string manipulation, the strings related to paths are build and rebuilt every time. A possible solution is on #2243 and the system should guarantee that files and directories do not be handled like strings.
Also, this solution would unify the files and directories handling on all OS.