<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>na6ko</author_name>
  <author_url>https://blog.hatena.ne.jp/na6ko/</author_url>
  <blog_title>narukoの開発メモ</blog_title>
  <blog_url>https://na6ko.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>タイトルが長い... 筆者は msys2 を常用し開発作業をしています. 昨日コマンドラインの引数 (main() の argv) にUTF-8の日本語文字列を渡しても正常に動かないケースがあり原因を調べました. そもそも日本語文字列をターミナルで使うということが10年間ぐらいなくてなんでいまさらと、いう話ですけど. 経緯 &gt; echo.exe &quot;お尻&quot; 問題なし お尻の文字コードは入出力ともに UTF-8 &gt; hoge.exe &quot;お尻&quot; 引数が正しく取り込まれない 文字コードは入力は UTF-8 で 出力は SJIS main() の argv を調べたらなぜか SJIS になっている sh…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fna6ko.hatenadiary.jp%2Fentry%2F2019%2F12%2F02%2F111159&quot; title=&quot;Mingw系のgccで生成される exe ファイルの main() の argv の文字コード - narukoの開発メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-02 11:11:59</published>
  <title>Mingw系のgccで生成される exe ファイルの main() の argv の文字コード</title>
  <type>rich</type>
  <url>https://na6ko.hatenadiary.jp/entry/2019/12/02/111159</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
