Editing registry file problem

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
kggxg
Posts: 4
Joined: Wed Dec 31, 2003 4:12 pm

Editing registry file problem

Post by kggxg »

Using 4.7.2 on w2k

editing a registry file (.reg) causes it become unusable. Get error when trying to merge the registry file.

Have not had this problem with previous ver of TP.

Any ideas what has changed?
- R. Grant Getz
Arizona State University
Tempe, AZ 85287-0101
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

I may be wrong but I think you don't use a text editor for a reg file.
Use Regedit or other similar to import and work with your reg file. HTH
Then I open up and see
the person fumbling here is me
a different way to be
kggxg
Posts: 4
Joined: Wed Dec 31, 2003 4:12 pm

Post by kggxg »

registry info that is exported to a file is plain text. I've been using/editing registry files for year.

TP 4.7.2 seems to do something to the file so that is no longer usable.
- R. Grant Getz
Arizona State University
Tempe, AZ 85287-0101
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

I just did the following:

exported HKEY_CURRENT_USER\Software\Helios\TextPad 4
into a file, copied the file
opened the copy with Textpad, added a space and removed it again, then saved the copy.

A comparison of both files showed exactly one difference:
the UTF8 byte order marker 0xff 0xfe was missing.

I then closed the file to create a new document class called reg files, members *.reg.
After creating it, I made sure the checkbox "Write Unicode and UTF8 BOM" was checked (it was not checked in the "default" file class which was used for *.reg before creating the new class).
I then copied the reg file again, opened the new copy with textpad, added a space and removed it again, then saved the new copy.

A comparison between the originial file and the new copy showed no differences.

Therefore: solution:

create a new document class for *.reg files with "Write Unicode and UTF8 BOM" checked.
kggxg
Posts: 4
Joined: Wed Dec 31, 2003 4:12 pm

Post by kggxg »

MudGuard,

Thanks for checking out the problem and providing a solution!
- R. Grant Getz
Arizona State University
Tempe, AZ 85287-0101
JML
Posts: 7
Joined: Tue Sep 16, 2003 2:21 pm

Post by JML »

Thanks for the fix -- this problem with .reg patches was incredibly hard to diagnose - it was driving me crazy! This really has to be fixed ASAP by TextPad's developers.
User avatar
Drxenos
Posts: 209
Joined: Mon Jul 07, 2003 8:38 pm

Post by Drxenos »

JML wrote:Thanks for the fix -- this problem with .reg patches was incredibly hard to diagnose - it was driving me crazy! This really has to be fixed ASAP by TextPad's developers.
I don't think this is a bug in TextPad. I don't believe .reg files are plain text, but Unicode. As such, treating them is plain text as probably the problem.

http://www.unicode.org/unicode/faq/utf_bom.html#22
kemosabe
Posts: 1
Joined: Thu Oct 28, 2004 12:53 pm

Post by kemosabe »

Drxenos wrote:
JML wrote:Thanks for the fix -- this problem with .reg patches was incredibly hard to diagnose - it was driving me crazy! This really has to be fixed ASAP by TextPad's developers.
I don't think this is a bug in TextPad. I don't believe .reg files are plain text, but Unicode. As such, treating them is plain text is probably the problem.

http://www.unicode.org/unicode/faq/utf_bom.html#22
True. But the developers should make a default "Registry" class that is configured to save a workable .reg file. TextPad should completely replace Notepad. As it is, before disdovering this fix (creating a new class), I had to switch to Notepad to edit .reg files. People should not have to switch to Notepad, or hunt for this information. They should just install and register TextPad, and never use Notepad again. Period.
Austin
Posts: 1
Joined: Sat Oct 02, 2004 3:21 pm
Location: Maryland
Contact:

Post by Austin »

Thanks MudGuard...
Austin Coulbourn
joelmw
Posts: 20
Joined: Wed Mar 10, 2004 4:48 pm
Location: DFW
Contact:

Post by joelmw »

Ditto what Austin said (Thanks, MudGuard) :)

And I agree with kemosabe . . .
Grace and Peace,
Joel
Post Reply