[MacPorts] #35244: hexfiend 2.1.2 fails to compile XIB: The value for Key (NSTag) is too large to fit into a 32 bit integer.
MacPorts
noreply at macports.org
Wed Jul 18 12:46:03 PDT 2012
#35244: hexfiend 2.1.2 fails to compile XIB: The value for Key (NSTag) is too large
to fit into a 32 bit integer.
-----------------------------------+----------------------------------------
Reporter: 200309@… | Owner: cal@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.1.1
Keywords: snowleopard | Port: hexfiend
-----------------------------------+----------------------------------------
Comment(by cal@…):
I fear there might be no easy fix.
The problem is caused by the tag values used for two menu entries in the
menu bar switching the text encoding to UTF-16 (little and big endian).
Since `NSStringEncoding` is an integer the tag value of these menu entries
directly represents the encoding to be used
(`NSUTF16BigEndianStringEncoding = 0x90000100 = 2415919360` and
`NSUTF16LittleEndianStringEncoding = 0x94000100 = 2483028224`). Both of
these values fit into 32 bit, but both have the MSB set (which means they
would be negative if interpreted in a signed fashion).
Could you try editing MainMenu.xib and replacing those numbers with their
signed interpretations in decimal representation, i.e.
{{{
sudo port clean HexFiend
sudo port patch HexFiend
cd $(port work HexFiend)/HexFiend-2.1.2/English.lproj
sudo -u macports sed -E -e 's/2415919360/-1879047936/g' -e
's/2483028224/-1811939072/g' -i '' MainMenu.xib
sudo port build HexFiend
}}}
and see if it still breaks?
--
Ticket URL: <https://trac.macports.org/ticket/35244#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list