<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 7 Aug 2016, at 21:09, Jacob Carlborg wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">[…] Is TextMate using the same encoding as the file or an internal encoding. Or is that an implementation detail?
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">Currently it uses UTF-8 internally but I would say it’s an implementation detail (1.x used UTF-16 for better compatibility with NSString and friends).</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999"><div dir="auto">IMHO the tool should be updated to output warnings/errors as line:column and not byte offset.
</div></blockquote><div dir="auto">I can file an enhancement request for the tool and see what they say.
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">If they won’t support this, we could add support to <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">mate</code> but I would prefer to keep it as an extension of the current <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">-l/--line</code> syntax, e.g. <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">--line +42</code> to indicate a byte offset of 42.</p>
</div>
</div>
</body>
</html>