http://bugs.winehq.org/show_bug.cgi?id=10661
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@winehq.org ReportedBy: mlg7@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", getAppName());} ungetc(c,in);