~ubuntu-branches/ubuntu/quantal/maradns/quantal

« back to all changes in this revision

Viewing changes to parse/Csv2_rr_txt.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2012-01-12 23:35:38 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20120112233538-5jkaqrh9nbqtf1ey
Tags: upstream-2.0.04+really1.4.09
ImportĀ upstreamĀ versionĀ 2.0.04+really1.4.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2004-2007,2011 Sam Trenholme
 
1
/* Copyright (c) 2004-2007 Sam Trenholme
2
2
 *
3
3
 * TERMS
4
4
 *
425
425
                                if(look == '#') {
426
426
                                        csv2_error(stream,
427
427
                           "The # character is not allowed in TXT records\n"
428
 
                           "Please use the '\\x23' escape sequence instead.\n"
429
 
                           "man csv2_txt for more information");
 
428
                           "Please use the '\\x23' escape sequence instead.");
430
429
                                        return 0;
431
430
                                } else if(look == '|') {
432
431
                                        csv2_error(stream,
433
432
                           "The | character is not allowed in TXT records\n"
434
 
                           "Please use the '\\x7c' escape sequence instead.\n"
435
 
                           "man csv2_txt for more information");
 
433
                           "Please use the '\\x7c' escape sequence instead.");
436
434
                                        return 0;
437
435
                                } else if(look == '~') {
438
436
                                        csv2_error(stream,
439
437
                           "The ~ character is not allowed in TXT records\n"
440
 
                           "Please use the '\\x7e' escape sequence instead.\n"
441
 
                           "man csv2_txt for more information");
 
438
                           "Please use the '\\x7e' escape sequence instead.");
442
439
                                        return 0;
443
440
                                } else if(look == 127) {
444
441
                                        csv2_error(stream,
445
442
                           "The DEL character is not allowed in TXT records\n"
446
 
                           "Please use the '\\x7f' escape sequence instead.\n"
447
 
                           "man csv2_txt for more information");
 
443
                           "Please use the '\\x7f' escape sequence instead.");
448
444
                                } else if(look < ' ') {
449
445
                                        csv2_error(stream,
450
446
   "Control characters (including newlines) are not allowed in TXT records\n"
451
 
                        "Please use the appropriate escape sequence instead.\n"
452
 
                           "man csv2_txt for more information");
 
447
                        "Please use the appropriate escape sequence instead.");
453
448
                                        return 0;
454
449
                                } else if(csv2_txt_append(out, look, &txt_len)
455
450
                                       != 1) {