Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Wrong file encoding for date.rb on ubuntu

Thread Tools

Wrong file encoding for date.rb on ubuntu

Georg Leciejewski
Posts: n/a
After upgrading ruby via ubuntu package manager the encoding of the
date.rb seems to be wrong, so there are a whole bunch of strange chars
inside the file.

OS Ubuntu hardy

ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

I dont know where this issue is comming from. Maybe it is related to my
german ubuntu setup or to some fileencoding changes in the ubuntu or
ruby repos.
I had a similar issue a month ago with a file from a gem (forgot where
it was)

I opened the date.rb in geany and it says the encoding is iso. To fix
the issue i went onto a windows virtualbox and opened the date.rb (from
win ruby install) with notepad++ and copied the utf-8 encoded content
into my lokal date.rb

Posting this issue here to see whether or not i`m the only one.
Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Ubuntu is About to Drop Another Turd! Ubuntu 10.04 Clogwog Computer Support 0 04-29-2010 08:00 PM
Diagnose why Pacific TZ has wrong start/stop dates for DST, with JDK1.6 on Ubuntu david.karr Java 34 04-20-2009 11:35 PM
Reading Text File Encoding and converting to Perls internal UTF-8 encoding Perl Misc 2 04-17-2009 11:22 PM
Learn python packaging for Ubuntu and Debian in the Ubuntu Open Week SPE - Stani's Python Editor Python 1 04-29-2008 11:51 AM