WeBWorK Problems

Problems not rendering after upgrade to 2.17

Re: Problems not rendering after upgrade to 2.17

by Lukas Fredriksson -
Number of replies: 2
So I did some testing, both writing the problem directly without randomizing and copying one of the working files and changing the text so that it matched one of the non-working. Both of these methods worked.

That made me think that there had to be some problem with the encoding, and sure enough the problems that didn't work had CRLF line terminators while the working problems didn't.

So after changing encoding to just UTF-8 Unicode text the other problems also work!

Have to try this on our production server as well but it seems like this solves the issue.

Thank you for all the help!
In reply to Lukas Fredriksson

Re: Problems not rendering after upgrade to 2.17

by Lukas Fredriksson -
This problem with the line endings, is this a common issue as well? Should this even be an issue or could there be something else broken with my installation?
In reply to Lukas Fredriksson

Re: Problems not rendering after upgrade to 2.17

by Glenn Rice -
This shouldn't be an issue. Files that have CRLF line terminators should work just as well as those that don't. I tested a file with the old Dos style CRLF line endings on my production webwork 2.17 server, and the file worked fine with no warnings or errors.

Although, it seems something has changed on the develop branch and files with such line terminators are not working. I will probably need to fix that.

In any case, it is probably time that you convert those files to proper unix style line endings. Eventually, we are going to stop trying to support such stupid line endings. The only operating system in the world that has ever worked with CRLF's is Microsoft Windows, and even Microsoft is finally fixing that. It should be pretty easy to find a tool to do this. On linux you can use the command line utility dos2unix (available on Ubuntu in the dos2unix package).