Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#67 accept DOS/mac prefs files (bug 411092)

development
closed-accepted
Joachim Lous
Program (79)
5
2003-04-04
2002-10-10
Joachim Lous
No

Adds function char *ReadAnyTextFile(const char
*fileName) to file.c for loading files with 'foreign' line
breaks. Changes ImportPrefFile in preferences.c to use
it when loading prefs files.

Fixes bug #411092

Discussion

  • Joachim Lous
    Joachim Lous
    2002-10-10

    patch

     
    Attachments
  • Thorsten Haude
    Thorsten Haude
    2003-02-17

    Logged In: YES
    user_id=119143

    I get a funny warning which I can't handle at this time of
    the day:

    preferences.c: In function `ImportPrefFile':
    preferences.c:1232: warning: assignment makes pointer from
    integer without a cast

    Line 1232 is at the beginning of ImportPrefFile():

    if ((fileString = ReadAnyTextFile(filename)) != NULL)

     
  • Joachim Lous
    Joachim Lous
    2003-03-28

    Logged In: YES
    user_id=82866

    OK, a whole new version here. Now handles setting imports, normal settings files, and macro loading.
    All linebreak-conversion stuff is moved to utils/fileUtils.c, and a new function ReadAnyTextFile is added, for easy use at different locations.

     
  • Joachim Lous
    Joachim Lous
    2003-03-28

    Updated patch

     
    Attachments
  • Eddy De Greef
    Eddy De Greef
    2003-04-04

    • labels: --> Program
    • milestone: --> development
    • assigned_to: nobody --> jlous
    • status: open --> closed-accepted