[Bug 10661] New: regedit imports wrong binary data from .reg files ( affects FAR Manager) fix proposed

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Dec 3 19:11:28 CST 2007


           Summary: regedit imports wrong binary data from .reg files
                    (affects FAR Manager) fix proposed
           Product: Wine
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-programs
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: mlg7 at yandex.ru

regedit requires that a continuation line starts with exactly two spaces.
If the number of spaces is not 2, it imports wrong binary data.

This bug affects the FAR Manager, namely, its encoding tables (localization).
(some texts in Russian cannot be read; I think, the same problem exists 
for other European languages)

http://source.winehq.org/source/programs/regedit/regproc.c reads (line 570):

570                 if ((c = fgetc (in)) == EOF || c != ' ' ||
571                         (c = fgetc (in)) == EOF || c != ' ')
572                     fprintf(stderr,"%s: ERROR - invalid continuation.\n",
573                             getAppName());

It should be:

do { c=fgetc(in); } while(c==' '||c=='\t');
if(c==EOF){fprintf(stderr,"%s: ERROR - invalid continuation.\n",

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list