davispuh (Dāvis Mosāns)
- Login: davispuh
- Registered on: 07/01/2013
- Last sign in: 05/31/2018
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 2 | 11 | 13 |
Activity
01/29/2018
-
06:40 PM Ruby Bug #14406: File.expand_path doesn't expand tilde inside Windows home directory
- I wrote a patch for this with #12656
09/20/2017
-
06:21 PM Ruby Bug #12644: Support debug build on Windows with MSVC
- Most likely your ucrtbased.dll differs in such way that can't locate that structure, so either need to update implementation to work for it (you'll need to look at disassembly)
or you will need to compile with probably older version o...
08/05/2016
-
03:25 PM Ruby Feature #12654: On Windows use UTF-8 as filesystem encoding
- Usaku NAKAMURA wrote:
> If filesystem encoding is fixed to UTF-8, it causes other (but similar) problems.
UTF-8 can be easily encoded to any other encoding but opposite isn't always true.
But yeah I agree with other points.
-
02:42 AM Ruby Feature #12654: On Windows use UTF-8 as filesystem encoding
- Nobuyoshi Nakada wrote:
> Dāvis Mosāns wrote:
> ...
I strongly disagree. WinAPI, PowerShell and cmd supports Unicode independently of used codepage, you can navigate to paths which can't be represented with active codepage. There's rea...
08/04/2016
-
08:06 PM Ruby Feature #12656 (Assigned): Expand short paths with File.expand_path
- Currently File.expand_path expands short path only if it's last part.
~~~ruby
puts File.expand_path('C:/VERYLO~1')
puts File.expand_path('C:/VERYLO~1/OTHERL~1')
~~~
Produces
~~~
C:/VeryLongName12345
C:/VERYLO~1/OtherLongNa... -
04:29 PM Ruby Feature #12654: On Windows use UTF-8 as filesystem encoding
- Nobuyoshi Nakada wrote:
> Try `chcp.com 65001`.
That's not really needed. For example `File.read` works with any console's codepage. But `Dir.entries` and `Dir.pwd` works only for ANSI paths no matter what console's codepage is set t... -
02:22 AM Ruby Feature #12654 (Closed): On Windows use UTF-8 as filesystem encoding
- Windows (NTFS) supports Unicode and there can be paths/filenames with other characters than current ANSI/OEM codepage can encode.
See attached patch.
08/03/2016
-
06:33 PM Ruby Feature #12653 (Assigned): Use wide WinAPI for rb_w32_getcwd
- Use wide WinAPI for rb_w32_getcwd.
This will be needed so that Dir.pwd can support Unicode current directory on Windows.
I've attached a patch.
-
04:28 PM Ruby Bug #12652 (Closed): For Dir.home encode passed user
- Currently Dir.home(user) expects that passed user will be already in appropriate encoding but if it's not it will fail because comparing with different encodings.
This causes TestDir#test_home to fail.
~~~ruby
user = ENV['USER']
... -
12:53 AM Ruby Feature #12650 (Closed): Use UTF-8 encoding for ENV on Windows
- Windows environment variables supports Unicode (same wide WinAPI) and so there's no reason to limit ourselves to any codepage.
Currently ENV would use locale's encoding (console's codepage) which obviously won't work correctly for chara...