Cut trailing separators when converting from string to sgpath. Also, SGPath::fix does NOT replace ":". It only replaces "\" with "/", so the "i!=1" check for Windows made no sense (rule #9: never believe a source code comment).
Cut trailing separators when converting from string to sgpath. Also, SGPath::fix does NOT replace ":". It only replaces "\" with "/", so the "i!=1" check for Windows made no sense (rule #9: never believe a source code comment).