Skip to content
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

Fix: Fix $env:TEMP to use the full path instead of the MSDOS 8.3 shortened path for Windows users with long usernames #168

Commits on Aug 3, 2023

  1. Fix: Fix $env:TEMP to use the full path instead of the MSDOS 8.3 sh…

    …ortened path for Windows users with long usernames
    
    Previously, the value of `$env:TEMP` is, for a Windows user with a long username, something like `C:\users\somelo~1` for an actual path like `C:\users\somelongusername`. This value causes problems with `pandoc` which does not recognize shortened paths.
    
    Now, the full path of `$env:TEMP` is resolved. This should fix the script for users with long usernames (anything more than 8 characters).
    
    Useful links:
    - https://superuser.com/questions/529400/how-does-progra1-path-notation-work
    - https://web.archive.org/web/20131206010029/http://support.microsoft.com/kb/142982
    - https://superuser.com/questions/348079/how-can-i-find-the-short-path-of-a-windows-directory-file
    - https://superuser.com/questions/1524767/powershell-uses-the-short-8-3-form-for-envtemp
    
    Fixes #167
    leojonathanoh committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    3d41422 View commit details
    Browse the repository at this point in the history