sillsdev / libpalaso

Palaso Library: A set of .Net libraries useful for developers of Language Software.
MIT License
44 stars 50 forks source link

Linefeed problem for Linux #1

Closed richardnielwilson closed 10 years ago

richardnielwilson commented 10 years ago

LoadIanaSubtags() in StandardTags.cs is using "\r\n" to split tags. This fails on Linux which uses "\n" for a linefeed only. There are other instances of "\r\n" being used in the Palaso Library for linefeeds and these may also cause problems on Linux. Error can be recreated using test console app below.

using System; using Palaso.IO; using Palaso.Reporting; using Palaso.UI.WindowsForms.WritingSystems;

namespace Palaso_LookupIsoCodeModel_test { class MainClass { public static void Main (string[] args) { LookupIsoCodeModel _lookupIsoCode = new LookupIsoCodeModel(); } } }

richardnielwilson commented 10 years ago

Modified function to accept either CR+LF or LF newlines for string.