<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hasekin28</author_name>
  <author_url>https://blog.hatena.ne.jp/hasekin28/</author_url>
  <blog_title>エラー大全集</blog_title>
  <blog_url>https://error-daizenn.hatenablog.com/</blog_url>
  <categories>
    <anon>ChatGPT</anon>
  </categories>
  <description>Wine上でZigのrealpathAllocがerror: Unexpectedになる原因と、壊れないパス処理の実践解 LinuxでWindows向けにクロスコンパイルしたZigバイナリをWineで動かしたら、std.fs.cwd().realpathAlloc(...)だけがerror: Unexpectedで落ちる――この現象は「あなたのコードが間違っている」というより、realpath系APIが抱える設計上・実装上の地雷と、Wine環境の“Windowsらしさ”の差が正面衝突して起きがちです。ここでは、なぜそうなるのかを整理し、実運用で壊れにくい代替案に置き換える方法をまとめます。 Z…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ferror-daizenn.hatenablog.com%2Fentry%2F2026%2F02%2F27%2F212606&quot; title=&quot;Wine上でZigのrealpathAllocがerror: Unexpectedになる原因と、壊れないパス処理の実践解 - エラー大全集&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hasekin28/20260227/20260227212545.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-27 21:26:06</published>
  <title>Wine上でZigのrealpathAllocがerror: Unexpectedになる原因と、壊れないパス処理の実践解</title>
  <type>rich</type>
  <url>https://error-daizenn.hatenablog.com/entry/2026/02/27/212606</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
