Thomas Thomassen

Activity

Reported issues: 3

07/28/2014

08:02 AM Ruby trunk Bug #9712: Dir.entries replace Unicode character with questionmarks
As mentioned the documentation for version 2.0 is missing this. SketchUp 2014 embedded Ruby 2.0 and developers usuall...

04/09/2014

09:03 AM Ruby trunk Bug #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Nobuyoshi Nakada wrote:
> * encoding.c (rb_enc_default_internal): fix rdoc. `__FILE__` is
> in filesystem encodi...

04/08/2014

01:45 PM Ruby trunk Bug #9713: __FILE__ return unexpected encoding - breaks Dir.glob
I'm starting to wonder if the three bugs I recently files could all go under one: that the behaviour described under ...
12:15 PM Ruby trunk Bug #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Referringthe docs (http://www.ruby-doc.org/core-2.1.1/Encoding.html#method-c-default_external-3D) to `Encoding.defaul...
12:12 PM Ruby trunk Bug #9712: Dir.entries replace Unicode character with questionmarks
Additional info:
I've made the RB files have `# encoding: UTF-8` and set `-E UTF-8:UTF-8` which from my understand...
12:08 PM Ruby trunk Bug #9715 (Open): ENV data yield ASCII-8BIT encoded strings under Windows with unicode username
My testing scenario:
English Windows, Unicode username: てすと
Home directory: C:\Users\てすと\
The values returned ...

04/07/2014

08:45 PM Ruby trunk Bug #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Looking at how Ruby determines the filesystem encoding:
http://rxr.whitequark.org/mri/source/encoding.c#1267
stat...
07:46 PM Ruby trunk Bug #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Usaku NAKAMURA wrote:
> But, the first case, the encoding of __FILE__ should be Windows-1252 (filesystem encoding)
...
07:40 PM Ruby trunk Bug #9712: Dir.entries replace Unicode character with questionmarks
Usaku NAKAMURA wrote:
> check Dir.entries('Foo', encoding: 'utf-8')
Ah, well that worked. I'd been referring to t...
05:47 PM Ruby trunk Bug #9713 (Assigned): __FILE__ return unexpected encoding - breaks Dir.glob
**C:/てすと/FILE.rb:**
~~~
# encoding: UTF-8
puts "Encoding.find 'filesystem': #{Encoding.find('filesystem').inspec...

Also available in: Atom