New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X Finder "The application cannot be found" - Accented non-standard characters #125

Closed
Slennox opened this Issue Aug 29, 2015 · 7 comments

Comments

Projects
None yet
3 participants
@Slennox

Slennox commented Aug 29, 2015

Hi.

Some of my files have accented non-standard characters (written in Spanish).

It looks like when I use acd_cli mount to mount ACD through FUSE an additional mount option:

-o modules=iconv,from_code=UTF-8

Should be passed to prevent errors. The problem is that Finder and other desktop applications cannot open the files, although they can be seen trough terminal (i.e. ls).

Related post to the problem:

osxfuse/osxfuse#71

Any suggestion to workaround this problem?

Rest of files with standard characters works well in the same mount point.

Thank you.

@yadayada

This comment has been minimized.

Show comment
Hide comment
@yadayada

yadayada Aug 29, 2015

Owner
diff --git a/acdcli/fuse.py b/acdcli/fuse.py
index 1aeda3e..54050e7 100644
--- a/acdcli/fuse.py
+++ b/acdcli/fuse.py
@@ -471,6 +471,7 @@ def mount(path: str, args: dict, **kwargs):
     FUSE(ACDFuse(**args), path, entry_timeout=60, attr_timeout=60, auto_cache=True,
          uid=os.getuid(), gid=os.getgid(),
          subtype=ACDFuse.__name__,
+         modules='iconv,from_code=UTF-8',
          **kwargs
          )
Owner

yadayada commented Aug 29, 2015

diff --git a/acdcli/fuse.py b/acdcli/fuse.py
index 1aeda3e..54050e7 100644
--- a/acdcli/fuse.py
+++ b/acdcli/fuse.py
@@ -471,6 +471,7 @@ def mount(path: str, args: dict, **kwargs):
     FUSE(ACDFuse(**args), path, entry_timeout=60, attr_timeout=60, auto_cache=True,
          uid=os.getuid(), gid=os.getgid(),
          subtype=ACDFuse.__name__,
+         modules='iconv,from_code=UTF-8',
          **kwargs
          )

@yadayada yadayada added the FUSE label Aug 29, 2015

@Slennox

This comment has been minimized.

Show comment
Hide comment
@Slennox

Slennox Aug 31, 2015

Thank you. Finally got it working for me with:

modules='iconv,to_code=UTF-8-MAC'

Slennox commented Aug 31, 2015

Thank you. Finally got it working for me with:

modules='iconv,to_code=UTF-8-MAC'

@Slennox

This comment has been minimized.

Show comment
Hide comment
@Slennox

Slennox Aug 31, 2015

Another (aesthetic) problem I found is that every file shows up in Finder as 0 bytes of size. Although in terminal you can see the actual size.

Any ideas?

Thank you.

Slennox commented Aug 31, 2015

Another (aesthetic) problem I found is that every file shows up in Finder as 0 bytes of size. Although in terminal you can see the actual size.

Any ideas?

Thank you.

@Timdawson264

This comment has been minimized.

Show comment
Hide comment
@Timdawson264

Timdawson264 Sep 1, 2015

Contributor

could be finder is using the readdir() struct stat which contains file size and type etc .
ls will aslo call getattr.
can u please give a log one from finder and one from terminal.

acd_cli -d mount -fg -i0 2>&1 | tee finder.log
and
acd_cli -d mount -fg -i0 2>&1 | tee terminal.log

Contributor

Timdawson264 commented Sep 1, 2015

could be finder is using the readdir() struct stat which contains file size and type etc .
ls will aslo call getattr.
can u please give a log one from finder and one from terminal.

acd_cli -d mount -fg -i0 2>&1 | tee finder.log
and
acd_cli -d mount -fg -i0 2>&1 | tee terminal.log

@Slennox

This comment has been minimized.

Show comment
Hide comment
@Slennox

Slennox commented Sep 1, 2015

@Timdawson264

This comment has been minimized.

Show comment
Hide comment
@Timdawson264

Timdawson264 Sep 10, 2015

Contributor

this seems pretty weird ive looked at the logs and both finder and the terminal are calling getattr.
so it looks like it might just be finder doing something weird with readir is my best guess.

Contributor

Timdawson264 commented Sep 10, 2015

this seems pretty weird ive looked at the logs and both finder and the terminal are calling getattr.
so it looks like it might just be finder doing something weird with readir is my best guess.

@yadayada

This comment has been minimized.

Show comment
Hide comment
@yadayada

yadayada Sep 13, 2015

Owner

I've added a --modules argument in 6c9b1be.

I might look into the Finder issue at some later time.

Owner

yadayada commented Sep 13, 2015

I've added a --modules argument in 6c9b1be.

I might look into the Finder issue at some later time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment