~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

Viewing changes to parse/Csv2_read.c

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2004-2006 Sam Trenholme
 
1
/* Copyright (c) 2004-2006,2008 Sam Trenholme
2
2
 *
3
3
 * TERMS
4
4
 *
169
169
        if(file->mnum == 0) {
170
170
read_char:
171
171
                out = getc(file->reading);
 
172
                /* If there is an unprintable control character, warn the
 
173
                 * user; note this may cause a spurious errors to be given
 
174
                 * to the user if they use some bizarre encoding in zone
 
175
                 * file comments.  Just use Unicode or iso-8859-whatever
 
176
                 * for your zone file comments. */
 
177
                if(out < 32 && out >= 0 && out != '\t' && out != '\r'
 
178
                   && out != '\n') {
 
179
                        printf("Warning: Unprintable character in zone file"
 
180
                               ": %02x\n",out);
 
181
                }
172
182
                file->context[file->cplace++] = out;
173
183
                if(file->cplace == 19) { file->cplace = 0; }
174
184
                if(out == '\n') {