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

Minimal workaround to fix bug 4831: handles PATH containing '+' characters #16

Merged
merged 1 commit into from
Jan 30, 2015

Conversation

marler8997
Copy link
Contributor

I created a potential workaround for the issue of the PATH environment variable containing '+' characters. If I understand the code correctly, I believe this workaround will silently ignore any folders in the path that contain the '+' character. I would anticipate this most likely occurring on anyone who has notepad++ installed and in their PATH directory. I've included a commented printf statement if anyone wants to use it to verify that the change detects the '+' sign correctly.

Bug Here: https://issues.dlang.org/show_bug.cgi?id=4831

@marler8997 marler8997 changed the title Minimal workaround to solve the PATH environment variable contains '+' c... Minimal workaround to fix bug 4831: handles PATH containing '+' characters Jul 30, 2014
@marler8997
Copy link
Contributor Author

I'm guessing pull requests for this repo aren't looked at very often?

@marler8997
Copy link
Contributor Author

Any status update on this? Is everyone busy? Is no one getting notified about this PR?

@@ -1,10 +1,10 @@
RELEASE_NUM EQU 0800H
RELEASE_NUM EQU 0750H
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, this change should be removed.

@@ -36,10 +36,26 @@ unsigned char *_get_filename(CMDLINE_STRUCT *EAX, NFN_STRUCT* ECX, unsigned char
else
{
*EDI++ = AL;
if (!(FNTBL[AL] & FNTBL_ILLEGAL))
if (!(FNTBL[AL] & FNTBL_ILLEGAL) || AL == ' ')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of accepting spaces here?

@WalterBright
Copy link
Contributor

I'll just merge it and tweak it a bit. Thanks for doing this!

WalterBright added a commit that referenced this pull request Jan 30, 2015
Minimal workaround to fix bug 4831: handles PATH containing '+' characters
@WalterBright WalterBright merged commit 35e5935 into DigitalMars:master Jan 30, 2015
@marler8997 marler8997 deleted the FixPlusSignInPath branch May 29, 2021 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants