Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut command errors. #15

Open
JiaChen-Zeng opened this issue Jul 5, 2017 · 4 comments
Open

Shortcut command errors. #15

JiaChen-Zeng opened this issue Jul 5, 2017 · 4 comments
Assignees

Comments

@JiaChen-Zeng
Copy link
Contributor

Interpret(F6):

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\某用户> cd ":\某用户\Desktop"
cd : パス 'C:\Users\某用户\:\某用户\Desktop' が存在しないため検出できません。
発生場所 行:1 文字:1
+ cd ":\某用户\Desktop"
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\某用户\:\某用户\Desktop:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

PS C:\Users\某用户> D:/某用户/Links/Shortcuts/Red.exe --cli d:\某用户\Desktop\test.red

Compile(F7):

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\某用户> cd "d:\某用户\Desktop"
PS D:\某用户\Desktop> D:/某用户/Links/Shortcuts/Red.exe -c d:\某用户\Desktop\test.red
Cannot access source file: d:\菴ウ螳ク\Desktop\test.red
@JiaChen-Zeng
Copy link
Contributor Author

The compilation error still occurs when I manually compile using cmd, so this one is not the extension's bug.

@ghost
Copy link

ghost commented Aug 5, 2017

The first one, I think, is the same as #6 , which has been fixed and is available on master branch (probably not yet released as an update, so you would have to use it manually).

The compilation error still occurs when I manually compile using cmd, so this one is not the extension's bug.

I think Red does not support chinese characters in path, so IMO you should open a bug report on the main red/red repo if not done already.

@hyzwhu
Copy link
Contributor

hyzwhu commented Jun 8, 2018

I have tried to set red path which contains the chinese characters on windows, it worked , so this should be not a bug. @qtxie

@ghost
Copy link

ghost commented Jun 13, 2018

This seems to be because rebol does not support unicode/chinese properly.
Once red is rewritten in red, then this should work.

Demo -
I created a folder using some chinese characters I picked up from this issue, and then -
Rebol -

>> probe system/options/path
%/C/Users/alpha/Desktop/???/

Red -

>> probe system/options/path
%/C/Users/alpha/Desktop/某用户/

Note that rebol displays chinese as question marks.

Also -
Rebol -

>> do %t.r
** Access Error: Cannot open /C/Users/alpha/Desktop/???/t.r
** Where: halt-view
** Near: do %t.r

Red -

>> do %t.red                              <-- This works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants