[Bug 26281] New: regedit: Doesn't export decent newline in Unicode (NT5) Format.

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Mar 2 08:39:07 CST 2011


http://bugs.winehq.org/show_bug.cgi?id=26281

           Summary: regedit: Doesn't export decent newline in Unicode
                    (NT5) Format.
           Product: Wine
           Version: 1.3.14
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: programs
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: sagawa.aki+winebugs at gmail.com


Created an attachment (id=33503)
 --> (http://bugs.winehq.org/attachment.cgi?id=33503)
exported registry file

Exporting a registry in Unicode (NT5) format from wine's regedit, it generates
ANSI newlines as shown in attached file.

Though the file can import to registry via regedit (this is the reason why I
choose `minor' in the severity), it's hard to edit in notepad or other editors
and incompatible with Windows.

% hexdump -C export.reg | head -6
00000000  ff fe 57 00 69 00 6e 00  64 00 6f 00 77 00 73 00  |..W.i.n.d.o.w.s.|
00000010  20 00 52 00 65 00 67 00  69 00 73 00 74 00 72 00  | .R.e.g.i.s.t.r.|
00000020  79 00 20 00 45 00 64 00  69 00 74 00 6f 00 72 00  |y. .E.d.i.t.o.r.|
00000030  20 00 56 00 65 00 72 00  73 00 69 00 6f 00 6e 00  | .V.e.r.s.i.o.n.|
00000040  20 00 35 00 2e 00 30 00  30 00 0d 0a 00 0d 0a 00  | .5...0.0.......|
00000050  5b 00 48 00 4b 00 45 00  59 00 5f 00 43 00 55 00  |[.H.K.E.Y._.C.U.|

As seen in above output, bytes from 0x4A to 0x4F (i.e. 0d 0a 00 0d 0a 00)
represent two ANSI newlines. But they should be two Unicode newlines (i.e. 0d
00 0a 00 0d 00 0a 00).

My environment is Ubuntu 10.10 (32-bit) and locale is ja_JP.UTF-8 (also tested
LANG=C).

How to reproduce:
  1. Launch regedit.exe.
  2. Select HKEY_CURRENT_USER\Software\Wine\Drivers in the left treeview.
  3. Click [Registry]-[Export Registry File] in the menu.
  4. Change [Files of type] to [Registry files (*.reg)].
  5. Enter a file name with appropriate name and click [Save] to export.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list