zdavatz / spreadsheet

The Ruby Spreadsheet by ywesee GmbH
http://spreadsheet.ch
GNU General Public License v3.0
1.13k stars 240 forks source link

Fix issue with iconv on Ubuntu 12.04 #179

Closed alexbalonperin closed 8 years ago

alexbalonperin commented 8 years ago

This fix is related to a bug in the iconv implementation packaged with libc6 on Ubuntu 12.04. The (known) ruby version affected is 1.8.7.

For some reasons, the encoding options //TRANSLIT//IGNORE seem to be improperly applied. When //TRANSLIT is specified, instead of rescuing errors related to //TRANSLIT and checking if the //IGNORE is set, the code simply crashes.

I would like to be able to disable //TRANSLIT for that specific use case and so I moved the encoding options to attribute accessors on the Spreadsheet module.

zdavatz commented 8 years ago

thank you! spreadsheet-1.1.3.gem is out.