# Pathname bug on Windows box?

**URL:** <https://www.ruby-forum.com/t/pathname-bug-on-windows-box/93517>\
**Category:** Ruby\
**Created:** [April 4, 2006, 11:03am UTC](https://www.ruby-forum.com/t/pathname-bug-on-windows-box/93517 "2006-04-04T11:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![psyche](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/848f3c/32.png) [@psyche](https://www.ruby-forum.com/u/psyche)\
**Post date:** [April 4, 2006, 11:03am UTC](https://www.ruby-forum.com/t/pathname-bug-on-windows-box/93517/1 "2006-04-04T11:03:00Z")

</div>

— test.rb —  
require ‘pathname’  
puts Pathname.new(’.’).realpath  
— test.rb —

always produces:

c:/ruby/lib/ruby/1.8/pathname.rb:341:in `lstat': Invalid argument - /c: (Errno::EINVAL) from c:/ruby/lib/ruby/1.8/pathname.rb:341:in`realpath’  
from test.rb:2

any ideas? seems like Pathname doesn’t support windows at all?

where to submit this kind of bugs?
