~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/unicodeio.c

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Unicode character output to streams with locale dependent encoding.
2
2
 
3
 
   Copyright (C) 2000-2003, 2006, 2008-2012 Free Software Foundation, Inc.
 
3
   Copyright (C) 2000-2003, 2006, 2008-2013 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
38
38
 
39
39
#include "localcharset.h"
40
40
#include "unistr.h"
41
 
#include "ignore-value.h"
42
41
 
43
42
/* When we pass a Unicode character to iconv(), we must pass it in a
44
43
   suitable encoding. The standardized Unicode encodings are
169
168
     conditions (STREAM is an open stream and not wide-character oriented)
170
169
     when fwrite() returns a value != buflen it also sets STREAM's error
171
170
     indicator.  */
172
 
  ignore_value (fwrite (buf, 1, buflen, stream));
 
171
  fwrite (buf, 1, buflen, stream);
173
172
  return 0;
174
173
}
175
174