ぼんやりDTP

DTPに関係したりしなかったりするぼんやりとした話をなんとなく。

Mac(OS X、macOS)の Finder でファイル名に使える文字について

MacOS XmacOS)の Finder でファイル名に使える文字について

  1. 基本的には「:」以外の一般的な文字は使える。
  2. 「.」で始まるファイルはシステムだけが使用できるため、 Finder 上ではファイル名の先頭には使えない。
  3. ファイル名中の「/」はターミナル上では「:」の表示になる。
  4. 「 」(タブ)は使えない。
  5. 絵文字も使える。
  6. 古いバージョンの OS XMac で一部の絵文字(「✨」等)を含んだファイル名のファイルを生成して、表示させようとすると Finder が延々再起動する。
    • OS X 10.4.11 でこのような動作をした。
    • 「✨」等の絵文字は OS 開発時の想定外の Unicode 文字のためと思われる。
    • ディスクのフォーマットは「Mac OS 拡張(ジャーナリング)」での検証。
    • ターミナルで該当の絵文字を含んだファイルを削除すると Finder の再起動はおさまる。
  7. Finder とターミナル上での絵文字の表示は絵文字により異なる
    1. 「✨」(U+2728)は OS X El Capitan 10.11.6 の Finder ではそのまま表示されるが、ターミナルでは「?」で表示される。
    2. 「🍺」(U+1f37a)は OS X El Capitan 10.11.6 の Finder でもターミナルでも「🍺」で表示される。

参考ページ

  1. Mac でファイル名に使えない文字 - Qiita
  2. Mac のファイル名に使える文字列にびっくりした話 - 新潟の空は今日も灰色/東京の空は今日も青空
  3. ファイル名について|パンフ・カタログの印刷君
  4. macos - What are invalid characters for a file name under OS X? - Super User
  5. HFS Plus - Wikipedia
  6. Apple Filing Protocol - Wikipedia
  7. Allowed characters in filename - Stack Overflow
  8. Filename - Wikipedia
    1. Filename - Wikipedia
  9. Use Emoji in file and folder names - Mac OS X Hints
  10. Technical Note TN1150: HFS Plus Volume Format
  11. Unicode on Mac is insane. Mac OS X uses NFD while everything else uses NFC. This fixes that. · GitHub
  12. Internationalization Programming Topics: File Encodings and Fonts
  13. APFS is not safe to use with names which have Unicode normalisation issues | Hacker News
  14. 23rd Internationalization and Unicode Conference - Abstract