1. join_path misbehaviour on Windows

In the context of

Euphoria Interpreter v4.2.0 release 
   64-bit Windows, Using System Memory 
   Revision Date: 2024-01-19 
   Id: f24f7211dcc0b65b7824f24188b86cc88fb0b05e 
I'm having an interesting time with join_path. I'm on Windows but the function is acting like it's on Linux.

sequence userprofile = getenv("USERPROFILE") 
puts(1, userprofile & "\n") 
sequence root = join_path({userprofile,".task"}) 
puts(1, root & "\n") 

C:\Users\bugma 
\C:\Users\bugma\.task 
So what's with the leading backslash?

-Bruce

new topic     » topic index » view message » categorize

2. Re: join_path misbehaviour on Windows

So I'm working around it with

sequence userprofile = {} 
ifdef WINDOWS then 
    userprofile = getenv("USERPROFILE") 
elsedef 
    userprofile = getenv("HOME") 
end ifdef 
sequence root = join_path({userprofile,".task"}) 
ifdef WINDOWS then 
    root = trim_head(root, "\\") 
end ifdef 
new topic     » goto parent     » topic index » view message » categorize

3. Re: join_path misbehaviour on Windows

Please file a bug report. (https://openeuphoria.org/ticket/index.wc).

new topic     » goto parent     » topic index » view message » categorize

4. Re: join_path misbehaviour on Windows

mitgedanken said...

Please file a bug report. (https://openeuphoria.org/ticket/index.wc).

What goes in the id field in the top right? I don't know what to put there and I get an error if I leave it blank.

-Bruce

new topic     » goto parent     » topic index » view message » categorize

5. Re: join_path misbehaviour on Windows

axtens_bruce said...
mitgedanken said...

Please file a bug report. (https://openeuphoria.org/ticket/index.wc).

What goes in the id field in the top right? I don't know what to put there and I get an error if I leave it blank.

-Bruce

  • That's not your fault.
  • The ticket <form> is broken.
    • Edit the hidden input field to 34 (ghaberek)
      • If it fails rename it from 'id' to 'assigned_to_id'
        (I tried both and I don't know which is correct.)


Forked into: [Web:BUG] Ticket-Form is broken!

new topic     » goto parent     » topic index » view message » categorize

6. Re: join_path misbehaviour on Windows

axtens_bruce said...

What goes in the id field in the top right? I don't know what to put there and I get an error if I leave it blank.

-Bruce

I forgot to mention something: The input field on the right has nothing to do with the ticket form.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu