Fix encoding discrepancy in excluded Windows paths #76
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Summary
When a site is in a directory containing characters with accents and similar entities (e.g.,
testé-çasésûr),the paths were encoded differently which were seen as a separate directory in the site.
Context
jekyll-watch/lib/jekyll/watcher.rb
Lines 95 to 105 in adc0107
If I were to have a custom destination set to "public", then the
absolute_pathin the code above gets created with encodingEncoding:UTF-8while theoptions["source"]encoding was inEncoding:Windows-1252.This resulted in a "relative_path" (via Pathname) starting with
../which caused that path to not be included as an ignored_pathor when stringified:
Steps to reproduce issue (Windows only)
jekyll new testé-çasésûrdestinationconfiguration (regular string)bundle exec jekyll b --watchorbundle exec jekyll s/cc @jekyll/windows
Thanks
To @DirtyF for providing a test repository that led to the discovery of this bug