From: Bertram Scharpf Date: 2005-01-21T02:40:07+09:00 Subject: Re: Umlauts in source code Hi, Am Donnerstag, 20. Jan 2005, 22:58:05 +0900 schrieb Yukihiro Matsumoto: > In message "Re: Umlauts in source code" > on Thu, 20 Jan 2005 20:45:49 +0900, Bertram Scharpf writes: > > |on my Debian Linux this problem doesn't appear. Yet, it is > |reported to me that on SuSE Linux, the standard Ruby > |installation has problems with reading in source files that > |contain umlauts (characters >= '\x80'). > > I think the difference is the default KCODE value in the compile time > configuration. One needs to set -Kn when he wants to put iso-8859 > letters. The simple > > #! /usr/bin/ruby -Kn > > at the beginning of a file will do. Ah, yes! As I noiticed in the meantime, SuSE sets $KCODE by default to "UTF-8". Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de