Bug 132956 - I18N - Error in the coded name of project path on local platform
I18N - Error in the coded name of project path on local platform
Status: NEW
Product: ruby
Classification: Unclassified
Component: Project
6.x
PC Windows XP
: P3 with 1 vote (vote)
: 7.0
Assigned To: issues@ruby
issues@ruby
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-16 05:57 UTC by taisoft
Modified: 2011-01-28 20:11 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description taisoft 2008-04-16 06:00:02 UTC
ERROR : 

steps for generating error on MS Windows XP SP2(the Korean version)
1. make a new project with <ruby application> in nb ide v.61RC1.
2. run the project
3. get output   

"Error opening script file: C:/Documents and Settings/???/My Documents/NetBeansProjects/RubyApplication1/lib/main.rb (파
일 이름, 디렉터리 이름 또는 볼륨 레이블 구문이 틀립니다)"

note :
  1) /???/ ==> User name in Korea    
  2) (파일 이름, 디렉터리 이름 또는 볼륨 레이블 구문이 틀립니다) ==> (Invalid syntax in the file name, directory name or 
volume label)

4. try the same procedure above from 1 to 3 by making a new project with <java appication> and run. Then, no error is 
generated. Thus, this error may be allocated for ruby.    

I guess that the ruby projector directly handles the platform native code as unicode when making path name without any 
code conversion.
Comment 1 Martin Krauskopf 2008-04-16 11:00:05 UTC
Thanks for detailed report, good to know it works with Java project. We might get inspiration there.
Comment 2 andredeen 2008-04-22 00:48:05 UTC
I have the exact same problem with 6.1 RC2 running on Vista (Dutch version). No surprise my name is spelled André.

Error opening script file: C:/Users/Andr?/Documents/NetBeansProjects/Sudoku/lib/main.rb (Het systeem kan het opgegeven 
pad niet vinden)

By the way, netbeans does execute the program using platform: Ruby 1.8.6 (2007-09-24 patchlevel 111).
Comment 3 Ivan Sidorkin 2008-07-25 12:39:30 UTC
  Product Version         = NetBeans IDE Dev (Build 20080725100330)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03; Sun Microsystems Inc.
  System Locale; Encoding = ru_RU (nb); Cp1251

create new RoR project

stderr:
rake aborted!
No such file to load -- C:/Documents and Settings/ivs/??? ?????????/NetBeansProjects/RailsApplication1/rakefile
C:/temp/netbeans-hudson-trunk-3032-ruby/netbeans/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in
`raw_load_rakefile'
(See full trace by running task with --trace)
Rake tasks fetching failed with (working directory: C:\Documents and Settings\ivs\Мои
документы\NetBeansProjects\RailsApplication1):

rake aborted!
No such file to load -- C:/Documents and Settings/ivs/??? ?????????/NetBeansProjects/RailsApplication1/rakefile
C:/temp/netbeans-hudson-trunk-3032-ruby/netbeans/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in
`raw_load_rakefile'
(See full trace by running task with --trace)
WARNING [org.netbeans.editor.DrawLayerList]: Using deprecated DrawLayer: highlight-layer z-order: 3000 class:
org.netbeans.modules.editor.highlights.HighlightLayer Layer class org.netbeans.modules.editor.highlights.HighlightLayer,
name='highlight-layer
WARNING [org.netbeans.editor.DrawLayerList]: Using deprecated DrawLayer: annotation-layer z-order: 2100 class:
org.netbeans.editor.DrawLayerFactory$AnnotationLayer Layer class org.netbeans.editor.DrawLayerFactory$AnnotationLayer,
name='annotation-layer
rake process failed (workdir: C:\Documents and Settings\ivs\Мои документы\NetBeansProjects\RailsApplication1):
Comment 4 kaa 2008-07-25 16:12:38 UTC
Looks like the problem came from mbyte chars in the project location.
Does it happen in English locale?
Comment 5 Ken Frank 2008-07-25 17:28:00 UTC
as I recall, there are various limitations or problems with ruby/rails itself and use
of non ascii, and this case might be one of them; see 139201 and 99058, especially this one
- I see that warnings were put when user tries to create project with non ascii in project
name, but not in project path, and that is the situation for this case.



Am guessing that it might be same restriction/limitation in ruby/rails (at least the
one used in nb now) here as in case where project name should not use non ascii ?

If so, can warnings be added to new project wizard like they are for project name itself ?

PS just FYI to filers/commenters - non ascii can't be used in name or path to userdir
or installed location of nb for any projects or usages, again this is just FYI.

ken.frank@sun.com


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo