Editing registry file problem
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Editing registry file problem
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?
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
Arizona State University
Tempe, AZ 85287-0101
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
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.
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.
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.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.
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.Drxenos wrote: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.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.
http://www.unicode.org/unicode/faq/utf_bom.html#22