Walter Dnes
2008-Sep-04 05:00 UTC
[Wine] Notepad appends ".txt" to file names it looks for
The program I'm using is 4NEC2, a freeware antenna-modelling program. I'm running wine-0.9.61 on Gentoo Linux on a Dell with Intel Core Duo cpu. Let's say I'm working on a design that I call "fubar". 4NEC2 will create files with names like "fubar.NEC" and "fubar.log". 4NEC uses Notepad to open the files for viewing. For some reason, my system always seems to try opening them as "fubar.NE.txt" and "fubar.lo.txt". The last character of the extension is deleted, and ".txt" is appended. When it tries to open files with these weird names, the result is a "File not found" error. Is there any way I can set Notepad not to be so "helpful"? As a second option, 4NEC2 allows to specify another text editor. Is there an "Edit" equivalant for Wine, or can Wine launch linux programs like vim or nano? -- Walter Dnes <waltdnes at waltdnes.org>
Walter Dnes wrote:> The program I'm using is 4NEC2, a freeware antenna-modelling program. > I'm running wine-0.9.61 on Gentoo Linux on a Dell with Intel Core Duo > cpu. > > Let's say I'm working on a design that I call "fubar". 4NEC2 will > create files with names like "fubar.NEC" and "fubar.log". 4NEC uses > Notepad to open the files for viewing. For some reason, my system > always seems to try opening them as "fubar.NE.txt" and "fubar.lo.txt". > The last character of the extension is deleted, and ".txt" is appended. > > When it tries to open files with these weird names, the result is a > "File not found" error. Is there any way I can set Notepad not to be so > "helpful"? As a second option, 4NEC2 allows to specify another text > editor. Is there an "Edit" equivalant for Wine, or can Wine launch > linux programs like vim or nano? > > -- > Walter Dnes <waltdnes at waltdnes.org>Can you give a step by step guide of how to reproduce this? I've downloaded the program but I'm unsure of how to reproduce your problem.
Austin English
2008-Sep-04 13:14 UTC
[Wine] Notepad appends ".txt" to file names it looks for
On Thu, Sep 4, 2008 at 12:00 AM, Walter Dnes <waltdnes at waltdnes.org> wrote:> The program I'm using is 4NEC2, a freeware antenna-modelling program. > I'm running wine-0.9.61 on Gentoo Linux on a Dell with Intel Core Duo > cpu. > > Let's say I'm working on a design that I call "fubar". 4NEC2 will > create files with names like "fubar.NEC" and "fubar.log". 4NEC uses > Notepad to open the files for viewing. For some reason, my system > always seems to try opening them as "fubar.NE.txt" and "fubar.lo.txt". > The last character of the extension is deleted, and ".txt" is appended.$ touch foobar.log $ notepad foobar.log # file save works fine> When it tries to open files with these weird names, the result is a > "File not found" error. Is there any way I can set Notepad not to be so > "helpful"? As a second option, 4NEC2 allows to specify another text > editor. Is there an "Edit" equivalant for Wine, or can Wine launch > linux programs like vim or nano?Try notepad++
Gert van den Berg
2008-Sep-05 03:53 UTC
[Wine] Fwd: Notepad appends ".txt" to file names it looks for
Forgot to reply to all and choose the right from address.... I filed a bug: http://bugs.winehq.org/show_bug.cgi?id=15130 Someone should confirm it.... ---------- Forwarded message ---------- From: Gert van den Berg Date: Fri, Sep 5, 2008 at 5:37 AM Subject: Re: [Wine] Notepad appends ".txt" to file names it looks for To: Walter Dnes On Thu, Sep 4, 2008 at 11:20 PM, Walter Dnes <waltdnes at waltdnes.org> wrote:> 4) Edit ==> Input (.nec) file > > At this point, I get the error dialog... > > File 'C:\4NEC2\MODELS\EXAMPLE1.NE.txt' > does not exist > > Do you want to create a new file?It would seem that if opening a file that doen not exist notepad appends .txt to the filename. Testcase: notepad test.log File "test.log.txt" does not exist Do you want to create it? This means that it is not possible to use notepad to crate a new file with an extention different than txt with parameters.... It might still be acceptable for notepad to try opening a .txt file IF IT exists. It should not offer te create a file with a different extension than specified... Gert