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

Unicode: evig løkke i UT_ReadLine, UT1.cpp #20

Open
Helten opened this issue Aug 11, 2016 · 0 comments
Open

Unicode: evig løkke i UT_ReadLine, UT1.cpp #20

Helten opened this issue Aug 11, 2016 · 0 comments

Comments

@Helten
Copy link

Helten commented Aug 11, 2016

if (c == EOF) {
Denne blir aldri sann i Unicode, fordi c er en charog EOFer en int. c må derfor castes til char:
if (c == (char)EOF) {

Samme "umulige" sammenligning gjøres i følgende andre funksjoner:
UT_ReadLineCrlf(...)
UT_ReadFile(...)(2 varianter)
UT_ReadXMLLine(...)

petterreinholdtsen added a commit to petterreinholdtsen/fyba that referenced this issue Oct 26, 2019
This avoid conflicting definitions of max() and min().

Fixes kartverket#20 

The patch was fetched from Gnonthgol@005e527 .

Note, github added several charset transcoding changes too.  These are not wanted nor needed.
petterreinholdtsen added a commit to petterreinholdtsen/fyba that referenced this issue Oct 26, 2019
This avoid conflicting definitions of max() and min().

Fixes kartverket#20

The patch was fetched from Gnonthgol@005e527 .
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

No branches or pull requests

1 participant