Menu

#28 Preserve newline characters in MOO strings

open
nobody
bugfix (13)
5
2004-02-25
2004-02-25
Luke-Jr
No

This patch written by Ryalth preserves newline
characters (0x0a and 0x0d) within MOO strings across
database saving and loading. Currently, these
characters may corrupt the database if they appear
within any string.
This fix works by saving 0x0a as 0x00 'n' and 0x0d as
0x00 'r' in the database.
It is completely backwards compatible, since it is
currently impossible to have the character 0x00 within
a MOO string.
This patch requires my `Database Format Selection in
options.h' patch to be setup properly first, though it
can be easilly ported to work with the standard db_io
code (I'll probably do this later).

Discussion

  • Luke-Jr

    Luke-Jr - 2004-02-25

    Apply after `Database Format Selection in options.h'

     
  • Luke-Jr

    Luke-Jr - 2004-03-17

    Logged In: YES
    user_id=25634

     
  • Luke-Jr

    Luke-Jr - 2004-03-17

    Patch for vanilla LambdaMOO 1.8.1

     

Log in to post a comment.