This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC 2/6] Avoid missing char before incomplete sequence in wchar_iterate.


On 09/26/2013 12:57 PM, Pierre Muller wrote:
     If charset is set to UTF-8
p "ABCD\340"
will output
   "ABC" <incomplete sequence \340>

   Note the missing character 'D'.

   This patch solves the issue by checking also for EINVAL
if character have been converted.

This looks okay to me, but it needs a test (and a maintainer to approve).

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]