[haiku-bugs] Re: [Haiku] #12824: [Patch] partitioning_systems/gpt/utility.cpp: Fix clang warnings

  • From: "jessicah" <trac@xxxxxxxxxxxx>
  • Date: Wed, 22 Jun 2016 01:25:21 -0000

#12824: [Patch] partitioning_systems/gpt/utility.cpp: Fix clang warnings
----------------------------------------+----------------------------
   Reporter:  mt                        |      Owner:  axeld
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  Unscheduled
  Component:  Partitioning Systems/GPT  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  1                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by jessicah):

 This is clearly a bug. The spec says we're decoding UTF-16 (rather than
 UCS-2), so the change to a uint32 is only part of the fix.

 See the section about U+10000 and above at
 https://en.wikipedia.org/wiki/UTF-16. `c` will need to be OR'd with the
 next two values.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12824#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: