Weird behavior with non ASCII dirnames #403

Closed
fuadsaud opened this Issue Mar 5, 2013 · 9 comments

Projects

None yet

4 participants

fuadsaud commented Mar 5, 2013

Autocomplete for files/directories diacritical marks in the name show a weird code.

For "Processamento Gráfico":

Screen Shot 2013-03-05 at 8 30 30 PM

Also, when the terminal is set to open new tabs with the same working directory of the current tab, the dir set on the new tab is the parent of the dir with the problematic name.

Sorry if this have already been reported (I made a quick search in the issues but didn't find anything related).

Owner

Yes, it's escaping the acute accent.

What's your locale? Execute: locale.

Interestingly, Terminal.app has better support than iTerm2.app for UTF-8 characters.

Completion doesn't properly support multi-byte encodings yet, according to the Zsh mailing list.

Contributor

I have the same issue with both terminal.app and iTerm2.app
I tried with other accents (àâä) same issue (obviously).

With a clean ZSH (zsh -f -l) I still have the same problem, no problem with bash though.

Screen Shot 2013-03-06 at 13 38 05

Contributor

After more tests, it only affects completion: http://www.zsh.org/mla/users/2011/msg00015.html

Owner

@ColinHebert, unfortunately, there is nothing I can do in Prezto to fix this.

Contributor

@sorin-ionescu yes, I just wanted to add more details/resources because this will probably happen again and someone will open a new issue for it. Now there should be enough keywords/information here to help with the problem.

Owner

Thank you.

fuadsaud commented Mar 6, 2013

Thanks!

zaeleus commented Mar 9, 2013

@fuadsaud, zsh doesn't modify multibyte characters by default (see 5.2). Add setopt combiningchars to your .zshrc or equivalent.

Screen Shot 2013-03-08 at 10 36 33 PM

Owner

Thanks zaeleus. Not all terminals support that. Hence why it's disabled by default.

@sorin-ionescu sorin-ionescu reopened this Mar 9, 2013
@duellj duellj added a commit to duellj/prezto that referenced this issue Apr 29, 2013
@duellj duellj Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Set WORDCHARS in the editor module
  [Fix #422] Revert "Remove no longer necessary key bindings"
  Update external history-substring-search
  Sort Git conflict aliases
  [Fix #403] Display accented characters properly
  Correct typos in git module README
  Wrap errant long line in git module README
  Fix misspellings of the word bellow in READMEs
  Remove no longer necessary key bindings
  Update external history-substring-search
  Update external syntax-highlighting
  Update external completions
  [Fix #399] Only enable the main syntax highlighter
  Use the builtin $signals array
  Add Emacs module
  [Fix #396] Remove the osx trash function
  [Fix #398] Manually set locale

Conflicts:
	runcoms/zpreztorc
168d98f
@gmaghera gmaghera added a commit to gmaghera/prezto that referenced this issue May 1, 2013
@gmaghera gmaghera Getting latest fixes and features.
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  [Fix #419] Rewrite module gpg-agent; rename it to gpg
  [Fix #52] Add zstyles to configure history-substring-search
  [#52] Add zstyles to configure syntax-highlighting
  Set WORDCHARS in the editor module
  [Fix #422] Revert "Remove no longer necessary key bindings"
  Update external history-substring-search
  Sort Git conflict aliases
  [Fix #403] Display accented characters properly
  Correct typos in git module README
  Wrap errant long line in git module README
  Fix misspellings of the word bellow in READMEs
  Remove no longer necessary key bindings
  Update external history-substring-search
  Update external syntax-highlighting
  Update external completions
  [Fix #399] Only enable the main syntax highlighter
  Use the builtin $signals array
eb07611
@linuslundahl linuslundahl added a commit to linuslundahl/prezto that referenced this issue Oct 17, 2013
@sorin-ionescu @linuslundahl sorin-ionescu + linuslundahl [Fix #403] Display accented characters properly 59e96ec
@zeroasterisk zeroasterisk added a commit to zeroasterisk/prezto that referenced this issue Oct 22, 2013
@sorin-ionescu @zeroasterisk sorin-ionescu + zeroasterisk [Fix #403] Display accented characters properly cf06878
@lildude lildude pushed a commit to lildude/prezto that referenced this issue Jan 12, 2014
@sorin-ionescu sorin-ionescu [Fix #403] Display accented characters properly 9988d75
@lackac lackac added a commit to lackac/prezto that referenced this issue Jan 19, 2014
@sorin-ionescu @lackac sorin-ionescu + lackac [Fix #403] Display accented characters properly 46d52bc
@matthoffman matthoffman added a commit to matthoffman/oh-my-zsh that referenced this issue Sep 18, 2014
@sorin-ionescu @matthoffman sorin-ionescu + matthoffman [Fix #403] Display accented characters properly 5d0014c
@fanf fanf added a commit to fanf/prezto that referenced this issue Nov 12, 2015
@sorin-ionescu @fanf sorin-ionescu + fanf [Fix #403] Display accented characters properly 9fb3a54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment