Giter Club home page Giter Club logo

Comments (8)

sezero avatar sezero commented on September 13, 2024

I guess it this line 2142 in current SDL_hints.h ?
* keyboard would yield 'a' instead of 'ф'.

See https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_hints.h#L2142

from sdl.

madebr avatar madebr commented on September 13, 2024

The compiler warnings of OP suggests that the compiler does not read the source in utf-8 mode, but in cp932.

MSVC has a /utf-8 option, but I don't think this will fix this warning for external projects.

from sdl.

duerdak avatar duerdak commented on September 13, 2024

There's also one in SDL_joystick.c
image

from sdl.

sezero avatar sezero commented on September 13, 2024

There's also one in SDL_joystick.c

That would be:
MAKE_VIDPID(0x0f0d, 0x011e), // Hori Fighting Stick α in PC Mode
... at line 140 of SDL_joystick.c

from sdl.

sezero avatar sezero commented on September 13, 2024

There's also one in SDL_joystick.c

That would be: MAKE_VIDPID(0x0f0d, 0x011e), // Hori Fighting Stick α in PC Mode ... at line 140 of SDL_joystick.c

Well, make that lines 139 to 141 where there is that α character...

from sdl.

sezero avatar sezero commented on September 13, 2024

Well, make that lines 139 to 141 where there is that α character...

.. and lines 290 and 291 where we have and

from sdl.

Susko3 avatar Susko3 commented on September 13, 2024

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4819?view=msvc-170

C4819 occurs when you compile an ANSI source file on a system using a codepage that can't represent all characters in the file.

Save the file in Unicode format to prevent data loss.

Perhaps the header files you have on disk are malformed in some way. Try redownloading SDL3 source again from https://github.com/libsdl-org/SDL/archive/refs/heads/main.zip.

If that doesn't help, try saving the offending files in 'UTF-8 (with signature/BOM)' encoding as suggested by the error description.

from sdl.

slouken avatar slouken commented on September 13, 2024

Fixed, thanks!

from sdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.