Skip to content

Instantly share code, notes, and snippets.

@mikeyjk
Created January 27, 2015 08:38
Show Gist options
  • Save mikeyjk/cdc750fd8f2d36ac0628 to your computer and use it in GitHub Desktop.
Save mikeyjk/cdc750fd8f2d36ac0628 to your computer and use it in GitHub Desktop.
FogBugz diff screen file path contains erroneous characters (Issue may be exclusive to Win7 + Chrome with *nix VM)
# work around for fogbugz diff screen
function toAscii() {
vim $(echo $1 | iconv -t ascii//TRANSLIT)
}
alias vimc='toAscii'
@mikeyjk
Copy link
Author

mikeyjk commented Jan 27, 2015

This is for an issue I encountered using Fogbugz/Kiln: when the file path on the diff screen is copied to clipboard it contains characters that will break commands in terminal, such as cd, cat, vim etc. etc.

"It's not an error with Kiln, it's a disagreement between Chrome and Windows 7 on how they should represent the characters Kiln has encoded. This one might require the use of a workaround such as deleting extraneous characters or copy-pasting into a middle software such as Notepad++, as a cure on our end may break other things and be worse than the disease."

Invocation would be:

vimc [pasted file path with sneaky hidden characters]

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