guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Improve handling of Unicode byte-order marks (BOMs)


From: Mike Gran
Subject: Re: [PATCH] Improve handling of Unicode byte-order marks (BOMs)
Date: Fri, 5 Apr 2013 00:42:26 -0700 (PDT)

>>>  +      /* If the specified encoding is UTF-16 or UTF-32, then make
>>>  +         that more precise by deciding what endianness to use.  */
>>>  +      if (strcasecmp (pt->encoding, "UTF-16") == 0)
>>>  +        precise_encoding = decide_utf16_encoding (port, mode);
>>>  +      else if (strcasecmp (pt->encoding, "UTF-32") == 0)
>>>  +        precise_encoding = decide_utf32_encoding (port, mode);
>> 
>>  Ideally these comparisons would not be locale-dependent.  Dunno.
> 
> Yes, that would be preferable.  We talked about adding an
> 'ascii_strcasecmp' function.  What file do you think it should be
> defined in?

It would be a trivial function to write, of course, but there is a
c-strcasecmp func in gnulib.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]