Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P purr-data
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 363
    • Issues 363
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Jonathan Wilkes
  • purr-data
  • Issues
  • #230

Closed
Open
Created Jan 22, 2017 by Albert Gräf@aggraefDeveloper

Recent files on OSX: Unicode filenames get munged after saving to and reading back from persistent config data (OSX defaults)

The superficial symptom is that items from the Recent files list seem to disappear when relaunching Purr Data on OSX, which doesn't happen on Linux.

Digging into this, I found that Unicode characters like Ü become U\u0308 (with the literal ASCII character sequence "\u0308", not the code point \u0308!) in the recentX defaults value on OSX. Obviously the Unicode glyph Ü a.k.a. U\u0308 gets "translated" to the literal 7-character sequence "U\u0308" when storing the defaults value. It seems that the defaults saving code is to blame here (which works by running the defaults program via system() on OSX), since sending the filename from the GUI to the engine seems to work ok (otherwise none of the open and save operations would work with such filenames on OSX).

Assignee
Assign to
Time tracking