=begin According to the doc f.gets(nil) returns the rest of the file. This works fine. But the doc also says that "limit" should restrict the length of the character string returned. Therefore I expect f.gets(nil, 10) to return...mike (Michael Selig)
=begin There were a number of quite long discussions about String (and Regexp) literal encodings (as well as other encoding compatibility issues) last year. The decisions (as I recall) were: - There should be NO silent transcoding i...mike (Michael Selig)
Existing datafile has fixed length records, currently single-byte chars. I want to convert the application (which is quite old) to support multi-byte characters, but I don't want to have to go to th...mike (Michael Selig)
=begin I reported this on ruby-core last week ([ruby-core:20850] Re: Problems compiling R20933 on Ubuntu 8.10 Linux), expecting a quick reply & fix, but nothing appears to have been done. Here is an extract from it:
=begin Now that we have String#each_codepoint there are times when you want to pack an array of integer codepoints back to a string. With UTF-8 you can use: arr.pack("U*").force_encoding("UTF-8") But I think it would be better to ...mike (Michael Selig)