[Rock-dev] [rock] #395: Orogen: Non US-ASCII characters...
rock
noreply at opendfki.de
Wed Dec 11 10:09:56 CET 2013
#395: Orogen: Non US-ASCII characters...
-------------------------+------------------------------------
Reporter: mzenzes | Owner: rock-dev-mailing-list
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Resolution:
Keywords: orogen,utf8 |
-------------------------+------------------------------------
Comment (by sylvain.joyeux):
The parsing of Ruby files is governed by the current encoding (i.e. LANG).
Unfortunately, I believe that it is the right way (but we could discuss
it). If we switch to UTF-8 and people have edited their files using non-
utf8 characters, we'll get the same issue.
For the headers, it seems that most compilers assume UTF-8. I'll change it
to that.
In any case, using force_encoding is WRONG. The right way to handle this
in Ruby is to properly set the encoding on File.(open|read|readlines).
Which is something ruby 1.8 did NOT support, meaning that we had to wait
for 1.8 being phased out to start adding those (which I did)
--
Ticket URL: <http://rock.opendfki.de/ticket/395#comment:2>
rock <http://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list