<p>AppleLanguages differs based on OS X version - newer versions<br>
return values like cs_CZ, older OS X versions return only cs. This<br>
leads to problems in scripts executed in VTE. It seems that<br>
AppleLocale always returns the complete value so test it first when<br>
setting LANG to mitigate this problem.</p>
<p>In addition, move adding the suffix "UTF-8" to the very end of the<br>
script because some parts of the script depend on the value<br>
without this suffix.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-osx/pull/9'>https://github.com/geany/geany-osx/pull/9</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Check AppleLocale before AppleLanguages when setting LANG</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-osx/pull/9/files#diff-0">launcher-gtk2.sh</a>
    (87)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-osx/pull/9/files#diff-1">launcher-gtk3.sh</a>
    (87)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-osx/pull/9.patch'>https://github.com/geany/geany-osx/pull/9.patch</a></li>
  <li><a href='https://github.com/geany/geany-osx/pull/9.diff'>https://github.com/geany/geany-osx/pull/9.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-osx/pull/9">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ67erJTemkgjVO02bIrAGKVBrqYLks5uCOwdgaJpZM4U-Xab">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ0n_FKRNsjAtV0MtX0whoxcb1QHtks5uCOwdgaJpZM4U-Xab.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-osx","title":"geany/geany-osx","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-osx"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Check AppleLocale before AppleLanguages when setting LANG (#9)"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany-osx/pull/9"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-osx/pull/9",
"url": "https://github.com/geany/geany-osx/pull/9",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Check AppleLocale before AppleLanguages when setting LANG (#9)",
"sections": [
{
"text": "",
"activityTitle": "**Jiří Techet**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@techee",
"facts": [

]
},
{
"title": "Commit Summary",
"facts": [
{
"name": "df5a827",
"value": "Check AppleLocale before AppleLanguages when setting LANG"
}
]
},
{
"title": "File Changes",
"facts": [
{
"name": "Modified",
"value": "[launcher-gtk2.sh](https://github.com/geany/geany-osx/pull/9/files#diff-0) (87 changes)"
},
{
"name": "Modified",
"value": "[launcher-gtk3.sh](https://github.com/geany/geany-osx/pull/9/files#diff-1) (87 changes)"
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany-osx\",\n\"issueId\": 9,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"geany/geany-osx\",\n\"pullRequestId\": 9\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-osx/pull/9"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-osx/pull/9.patch"
}
],
"@type": "OpenUri",
"name": "View patch"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany-osx/pull/9.diff"
}
],
"@type": "OpenUri",
"name": "View diff"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 351893147\n}"
}
],
"themeColor": "26292E"
}
]</script>