Skip to content

Converting to execution character set: Illegal byte sequence #376

Open
@Albertchamberlain

Description

This is a great project, but when I use it, there are some errors that happen.

Running environment: Win11, Go1.19

# github.com/go-gl/glfw/v3.3/glfw
In file included from C:\Users\houboxue\go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20221017161538-93cebf72946b\c_glfw.go:4:
C:\Users\houboxue\go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20221017161538-93cebf72946b/glfw/src/context.c: In function 'glfwSwapBuffers':
C:\Users\houboxue\go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20221017161538-93cebf72946b/glfw/src/context.c:644:1: error: converting to execution character set: Illegal byte sequence
  644 |     assert(window != NULL);
      | ^   ~~~~~~~~~~~~~~~~~~~~~~~                                                                                                  
C:\Users\houboxue\go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20221017161538-93cebf72946b/glfw/src/context.c: In function 'glfwExtensionSupported':
C:\Users\houboxue\go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20221017161538-93cebf72946b/glfw/src/context.c:678:1: error: converting to execution character set: Illegal byte sequence
  678 |     assert(extension != NULL);
      | ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~    
       

By the way,Running on WSL2.0 is ok
Thanks

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions