Menu

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

development
closed-accepted
Program (79)
5
2003-04-04
2002-10-10
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

     
  • 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

     
  • Eddy De Greef

    Eddy De Greef - 2003-04-04
    • labels: --> Program
    • milestone: --> development
    • assigned_to: nobody --> jlous
    • status: open --> closed-accepted
     

Log in to post a comment.