fluffynuts / PeanutButter

Tasty, versatile, nutritious; goes with many things in .net.
BSD 3-Clause "New" or "Revised" License
179 stars 32 forks source link

Quotes #40

Closed Alexandr682 closed 3 years ago

Alexandr682 commented 3 years ago

Quotes are added to all values. For example, i cannot save a number without quotes. It needs to be saved like this: speed = 6

but it turns out: speed = "6"

fluffynuts commented 3 years ago

Hi

Thanks for raising an issue.

First off, I assume you mean in PeanutButter.INI, since you didn't specify, and there are over 20 libraries which come out of this repo.

Secondly, I need to know the use-case, since if you're using either PeanutButter.INI or win32 api to read from the file, quotes are perfectly fine (see remarks on https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilestring -- GetPrivateProvileString will trim quotes, so enquoting is the safest option to preserve any required whitespace on a setting).

Before I invest time in providing more options, I need to know the circumstances under which PeanutButter.INI should deviate from acceptable win32 practices:

fluffynuts commented 3 years ago

@Alexandr682 I'm closing this due to inactivity; feel free to re-open if you can provide the requested information.