Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Assertion while reading redis.conf with UTF-8 bottom signature #21

Closed
JCKodel opened this Issue · 4 comments

3 participants

@JCKodel

On sds.c, line 485:

while(1) {
    /* skip blanks */
    while(*p && isspace(*p)) p++; <-------- This line fails with an assert when redis.conf has a UTF-8 bottom signure
    if (*p) {
        /* get a token */
@clca

Thanks for reporting this issue. We hit the same while working on the 64bit version. the fix will be submitted tomorrow.

@HenryRawas
Collaborator

Actually this is not a bug we found. I have been trying to find out what you mean by 'UTF-8 bottom signature'. Is this a BOM, or is it something else? Can you post an example for us to test with?

@HenryRawas HenryRawas closed this
@HenryRawas HenryRawas reopened this
@JCKodel

Sorry... It is BOM =)

As I use brazilian portuguese Windows OS (ISO-8859-1), Visual Studio saves some files as UTF-8 with a signature (ef bb bf) at first 3-bytes of text files.

That signature is throwing the assert.

@HenryRawas
Collaborator

Fix posted

@HenryRawas HenryRawas closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.