xref: /trunk/main/icc/SampleICC-1.6.11.patch (revision 5791de7ec478af64b675716e26bf50fcef72fb8d)
1--- misc/SampleICC-1.6.11/IccProfLib/IccCmm.cpp 2015-09-26 10:15:16.000000000 -0500
2+++ misc/build/SampleICC-1.6.11/IccProfLib/IccCmm.cpp   2026-10-27 01:48:25.321218890 -0500
3@@ -77,6 +77,8 @@
4 #include "IccXformFactory.h"
5 #include "IccTag.h"
6 #include "IccIO.h"
7+#include <stdlib.h>
8+#include <string.h>
9 #include "IccApplyBPC.h"
10
11 #ifdef USESAMPLEICCNAMESPACE
12--- misc/SampleICC-1.6.11/IccProfLib/IccIO.cpp  2015-09-26 10:15:16.000000000 -0500
13+++ misc/build/SampleICC-1.6.11/IccProfLib/IccIO.cpp    2026-10-27 01:48:25.020922771 -0500
14@@ -71,7 +71,7 @@
15 #include "IccIO.h"
16 #include "IccUtil.h"
17 #include <stdlib.h>
18-#include <memory.h>
19+#include <memory>
20 #include <string.h>
21
22 #ifndef __max
23--- misc/SampleICC-1.6.11/IccProfLib/IccMpeACS.cpp  2015-09-26 10:15:16.000000000 -0500
24+++ misc/build/SampleICC-1.6.11/IccProfLib/IccMpeACS.cpp    2026-10-27 01:48:25.312377075 -0500
25@@ -129,17 +129,17 @@
26   icChar sigBuf[30];
27
28   if (GetBAcsSig())
29-    sDescription += "ELEM_bACS\r\n";
30+    sDescription += "ELEM_bACS\n";
31   else
32-    sDescription += "ELEM_eACS\r\n";
33+    sDescription += "ELEM_eACS\n";
34
35   icGetSig(sigBuf, m_signature);
36   sDescription += "  Signature = ";
37   sDescription += sigBuf;
38-  sDescription += "\r\n";
39+  sDescription += "\n";
40
41   if (m_pData) {
42-    sDescription += "\r\nData Follows:\r\n";
43+    sDescription += "\nData Follows:\n";
44
45     icMemDump(sDescription, m_pData, m_nDataSize);
46   }
47--- misc/SampleICC-1.6.11/IccProfLib/IccMpeBasic.cpp    2015-09-26 10:15:16.000000000 -0500
48+++ misc/build/SampleICC-1.6.11/IccProfLib/IccMpeBasic.cpp  2026-10-27 01:48:25.276551696 -0500
49@@ -211,43 +211,43 @@
50   sprintf(buf, "%.8f", m_endPoint);
51   sDescription += buf;
52   }
53-  sprintf(buf, "]\r\nFunctionType: %04Xh\r\n", m_nFunctionType);
54+  sprintf(buf, "]\nFunctionType: %04Xh\n", m_nFunctionType);
55   sDescription += buf;
56
57   switch(m_nFunctionType) {
58   case 0x0000:
59     if (m_params[1]==0.0 && m_params[2]==0.0)
60-      sprintf(buf, "Y = %.8f\r\n\r\n", m_params[3]);
61+      sprintf(buf, "Y = %.8f\n\n", m_params[3]);
62     else if (m_params[0]==1.0 && m_params[1]==1.0 && m_params[2]==0.0 && m_params[3]==0.0)
63-      sprintf(buf, "Y = X\r\n\r\n");
64+      sprintf(buf, "Y = X\n\n");
65     else if (m_params[0]==1.0 && m_params[2]==0.0)
66-      sprintf(buf, "Y = %.8f * X + %.8f\r\n\r\n",
67+      sprintf(buf, "Y = %.8f * X + %.8f\n\n",
68               m_params[1], m_params[3]);
69     else
70-      sprintf(buf, "Y = (%.8f * X + %.8f)^%.4f + %.8f\r\n\r\n",
71+      sprintf(buf, "Y = (%.8f * X + %.8f)^%.4f + %.8f\n\n",
72               m_params[1], m_params[2], m_params[0], m_params[3]);
73     sDescription += buf;
74     return;
75
76   case 0x0001:
77-    sprintf(buf, "Y = %.8f * log (%.8f * (X ^ %.8f)  + %.8f) + %.8f\r\n\r\n",
78+    sprintf(buf, "Y = %.8f * log (%.8f * (X ^ %.8f)  + %.8f) + %.8f\n\n",
79             m_params[1], m_params[2], m_params[0], m_params[3], m_params[4]);
80     sDescription += buf;
81     return;
82
83   case 0x0002:
84-    sprintf(buf, "Y = %.8f * (%.8f ^ (%.8f * X + %.8f)) + %.8f\r\n\r\n",
85+    sprintf(buf, "Y = %.8f * (%.8f ^ (%.8f * X + %.8f)) + %.8f\n\n",
86             m_params[0], m_params[1], m_params[2], m_params[3], m_params[4]);
87     sDescription += buf;
88     return;
89
90   default:
91     int i;
92-    sprintf(buf, "Unknown Function with %d parameters:\r\n\r\n", m_nParameters);
93+    sprintf(buf, "Unknown Function with %d parameters:\n\n", m_nParameters);
94     sDescription += buf;
95
96     for (i=0; i<m_nParameters; i++) {
97-      sprintf(buf, "Param[%d] = %.8lf\r\n\r\n", i, m_params[i]);
98+      sprintf(buf, "Param[%d] = %.8lf\n\n", i, m_params[i]);
99       sDescription += buf;
100     }
101   }
102@@ -489,7 +489,7 @@
103   if (m_nReserved || m_nReserved2) {
104     sReport += icValidateWarningMsg;
105     sReport += sSigName;
106-    sReport += " formula curve has non zero reserved data.\r\n";
107+    sReport += " formula curve has non zero reserved data.\n";
108     rv = icValidateWarning;
109   }
110
111@@ -498,13 +498,13 @@
112     if (!m_params || m_nParameters<4) {
113       sReport += icValidateCriticalErrorMsg;
114       sReport += sSigName;
115-      sReport += " formula curve has Invalid formulaCurveSegment parameters.\r\n";
116+      sReport += " formula curve has Invalid formulaCurveSegment parameters.\n";
117       rv = icValidateCriticalError;
118     }
119     else if (m_nParameters > 4) {
120       sReport += icValidateWarningMsg;
121       sReport += sSigName;
122-      sReport += " formula curve has too many formulaCurveSegment parameters.\r\n";
123+      sReport += " formula curve has too many formulaCurveSegment parameters.\n";
124       rv = icValidateWarning;
125     }
126     break;
127@@ -513,13 +513,13 @@
128     if (!m_params || m_nParameters<5) {
129       sReport += icValidateCriticalErrorMsg;
130       sReport += sSigName;
131-      sReport += " formula curve has Invalid formulaCurveSegment parameters.\r\n";
132+      sReport += " formula curve has Invalid formulaCurveSegment parameters.\n";
133       rv = icValidateCriticalError;
134     }
135     else if (m_nParameters > 5) {
136       sReport += icValidateWarningMsg;
137       sReport += sSigName;
138-      sReport += " formula curve has too many formulaCurveSegment parameters.\r\n";
139+      sReport += " formula curve has too many formulaCurveSegment parameters.\n";
140       rv = icValidateWarning;
141     }
142     break;
143@@ -528,13 +528,13 @@
144     if (!m_params || m_nParameters<5) {
145       sReport += icValidateCriticalErrorMsg;
146       sReport += sSigName;
147-      sReport += " formula curve has Invalid formulaCurveSegment parameters.\r\n";
148+      sReport += " formula curve has Invalid formulaCurveSegment parameters.\n";
149       rv = icValidateCriticalError;
150     }
151     else if (m_nParameters > 5) {
152       sReport += icValidateWarningMsg;
153       sReport += sSigName;
154-      sReport += " formula curve has too many formulaCurveSegment parameters.\r\n";
155+      sReport += " formula curve has too many formulaCurveSegment parameters.\n";
156       rv = icValidateWarning;
157     }
158     break;
159@@ -544,7 +544,7 @@
160       icChar buf[128];
161       sReport += icValidateCriticalErrorMsg;
162       sReport += sSigName;
163-      sprintf(buf, " formula curve uses unknown formulaCurveSegment function type %d\r\n", m_nFunctionType);
164+      sprintf(buf, " formula curve uses unknown formulaCurveSegment function type %d\n", m_nFunctionType);
165       sReport += buf;
166       rv = icValidateCriticalError;
167     }
168@@ -724,7 +724,7 @@
169     sDescription += buf;
170     }
171
172-    sprintf(buf, "]\r\n");
173+    sprintf(buf, "]\n");
174     sDescription += buf;
175   }
176   else {
177@@ -741,9 +741,9 @@
178     sprintf(buf, "%.8f", m_endPoint);
179     sDescription += buf;
180     }
181-    sprintf(buf, "]\r\n");
182+    sprintf(buf, "]\n");
183     sDescription += buf;
184-    sDescription += "IN  OUT\r\n";
185+    sDescription += "IN  OUT\n";
186
187     icUInt32Number i;
188
189@@ -751,11 +751,11 @@
190     icFloatNumber last = (icFloatNumber)(m_nCount-1);
191
192     for (i=1; i<m_nCount; i++) {
193-      sprintf(buf, "%.8f %.8f\r\n", m_startPoint + (icFloatNumber)i*range/last, m_pSamples[i]);
194+      sprintf(buf, "%.8f %.8f\n", m_startPoint + (icFloatNumber)i*range/last, m_pSamples[i]);
195       sDescription += buf;
196     }
197   }
198-  sDescription += "\r\n";
199+  sDescription += "\n";
200 }
201
202 /**
203@@ -927,20 +927,20 @@
204   if (m_nReserved) {
205     sReport += icValidateWarningMsg;
206     sReport += sSigName;
207-    sReport += " sampled curve has non zero reserved data.\r\n";
208+    sReport += " sampled curve has non zero reserved data.\n";
209     rv = icValidateWarning;
210   }
211
212   if (m_nCount<2) {
213     sReport += icValidateCriticalErrorMsg;
214     sReport += sSigName;
215-    sReport += " sampled curve has too few sample points.\r\n";
216+    sReport += " sampled curve has too few sample points.\n";
217     rv = icValidateCriticalError;
218   }
219   else if (m_endPoint-m_startPoint == 0.0) {
220     sReport += icValidateWarningMsg;
221     sReport += sSigName;
222-    sReport += " sampled curve has a range of zero.\r\n";
223+    sReport += " sampled curve has a range of zero.\n";
224     rv = icMaxStatus(rv, icValidateWarning);
225   }
226
227@@ -1071,7 +1071,7 @@
228 {
229   CIccCurveSegmentList::iterator i;
230
231-  sDescription += "BEGIN_CURVE\r\n";
232+  sDescription += "BEGIN_CURVE\n";
233   for (i=m_list->begin(); i!=m_list->end(); i++) {
234     (*i)->Describe(sDescription);
235   }
236@@ -1361,14 +1361,14 @@
237   if (m_nReserved1 || m_nReserved2) {
238     sReport += icValidateWarningMsg;
239     sReport += sSigName;
240-    sReport += " Segmented curve has non zero reserved data.\r\n";
241+    sReport += " Segmented curve has non zero reserved data.\n";
242     rv = icValidateWarning;
243   }
244
245   if (m_list->size()==0) {
246     sReport += icValidateCriticalErrorMsg;
247     sReport += sSigName;
248-    sReport += " Has Empty CurveSegment!\r\n";
249+    sReport += " Has Empty CurveSegment!\n";
250     return icValidateCriticalError;
251   }
252
253@@ -1618,11 +1618,11 @@
254     icChar buf[81];
255     int i;
256
257-    sprintf(buf, "BEGIN_CURVE_SET %d\r\n", m_nInputChannels);
258+    sprintf(buf, "BEGIN_CURVE_SET %d\n", m_nInputChannels);
259     sDescription += buf;
260
261     for (i=0; i<m_nInputChannels; i++) {
262-      sprintf(buf, "Curve %d of %d\r\n", i+1, m_nInputChannels);
263+      sprintf(buf, "Curve %d of %d\n", i+1, m_nInputChannels);
264       sDescription += buf;
265       if (m_curve[i]) {
266         m_curve[i]->Describe(sDescription);
267@@ -1896,7 +1896,7 @@
268     sReport += " - Element ";
269     sSigName = Info.GetSigName(GetType());
270     sReport += sSigName;
271-    sReport += " Has Empty Curve Element(s)!\r\n";
272+    sReport += " Has Empty Curve Element(s)!\n";
273     return icValidateCriticalError;
274   }
275
276@@ -2061,7 +2061,7 @@
277   int i, j;
278   icFloatNumber *data = m_pMatrix;
279
280-  sprintf(buf, "BEGIN_ELEM_MATRIX %d %d\r\n", m_nInputChannels, m_nOutputChannels);
281+  sprintf(buf, "BEGIN_ELEM_MATRIX %d %d\n", m_nInputChannels, m_nOutputChannels);
282   sDescription += buf;
283
284   for (j=0; j<m_nOutputChannels; j++) {
285@@ -2071,7 +2071,7 @@
286       sprintf(buf, "%12.8lf", data[i]);
287       sDescription += buf;
288     }
289-    sprintf(buf, "  +  %12.8lf\r\n", m_pConstants[j]);
290+    sprintf(buf, "  +  %12.8lf\n", m_pConstants[j]);
291     sDescription += buf;
292     data += i;
293   }
294@@ -2292,7 +2292,7 @@
295     sReport += " - Element ";
296     sSigName = Info.GetSigName(GetType());
297     sReport += sSigName;
298-    sReport += " Has Empty Matrix data!\r\n";
299+    sReport += " Has Empty Matrix data!\n";
300     return icValidateCriticalError;
301   }
302
303@@ -2644,7 +2644,7 @@
304     sReport += " - Element ";
305     sSigName = Info.GetSigName(GetType());
306     sReport += sSigName;
307-    sReport += " Has No CLUT!\r\n";
308+    sReport += " Has No CLUT!\n";
309     return icValidateCriticalError;
310   }
311
312--- misc/SampleICC-1.6.11/IccProfLib/IccProfLibConf.h   2015-09-26 10:15:16.000000000 -0500
313+++ misc/build/SampleICC-1.6.11/IccProfLib/IccProfLibConf.h 2026-10-27 01:48:10.076794724 -0500
314@@ -112,33 +112,25 @@
315
316 #else // non-PC, perhaps Mac, Linux, or Solaris
317
318-  #define ICCUINT64 unsigned long long
319-  #define ICCINT64  long long
320-  #define ICUINT64TYPE unsigned long long
321-  #define ICINT64TYPE long long
322+#include <sal/types.h>
323+#include <osl/endian.h>
324
325-  #include <stdint.h>
326-
327-  //Make sure that 32 bit values are set correctly
328-  #define ICCUINT32 uint32_t
329-  #define ICCINT32  int32_t
330-  #define ICUINT32TYPE uint32_t
331-  #define ICINT32TYPE  int32_t
332-
333-  #if defined(__APPLE__)
334-    #if  defined(__LITTLE_ENDIAN__)
335-      #define ICC_BYTE_ORDER_LITTLE_ENDIAN
336-    #else
337-      #define ICC_BYTE_ORDER_BIG_ENDIAN
338-    #endif
339-
340-  #else // Sun Solaris or Linux
341-    #if defined(__sun__)
342-      #define ICC_BYTE_ORDER_BIG_ENDIAN
343-    #else
344-      #define ICC_BYTE_ORDER_LITTLE_ENDIAN
345-    #endif
346-  #endif
347+  #define ICCUINT64 sal_uInt64
348+  #define ICCINT64 sal_Int64
349+  #define ICUINT64TYPE sal_uInt64
350+  #define ICINT64TYPE sal_Int64
351+  #define ICCUINT32 sal_uInt32
352+  #define ICCINT32  sal_Int32
353+  #define ICUINT32TYPE sal_uInt32
354+  #define ICINT32TYPE sal_Int32
355+
356+#if defined(_LITTLE_ENDIAN)
357+#    define ICC_BYTE_ORDER_LITTLE_ENDIAN
358+#elif defined(_BIG_ENDIAN)
359+#    define ICC_BYTE_ORDER_BIG_ENDIAN
360+#else
361+#    error "ENDIAN unknown"
362+#endif
363
364   #define ICCPROFLIB_API
365   #define ICCPROFLIB_EXTERN
366--- misc/SampleICC-1.6.11/IccProfLib/IccProfile.cpp 2015-09-26 10:15:16.000000000 -0500
367+++ misc/build/SampleICC-1.6.11/IccProfLib/IccProfile.cpp   2026-10-27 01:48:25.044743421 -0500
368@@ -665,7 +665,7 @@
369
370   if (!ReadBasic(pIO)) {
371     sReport += icValidateCriticalErrorMsg;
372-    sReport += " - Unable to read profile!**\r\n\tProfile has invalid structure!\r\n";
373+    sReport += " - Unable to read profile!**\n\tProfile has invalid structure!\n";
374     Cleanup();
375
376     return icValidateCriticalError;
377@@ -674,7 +674,7 @@
378   // Check profile header
379   if (!CheckFileSize(pIO)) {
380     sReport += icValidateNonCompliantMsg;
381-    sReport += "Bad Header File Size\r\n";
382+    sReport += "Bad Header File Size\n";
383     rv = icMaxStatus(rv, icValidateNonCompliant);
384   }
385
386@@ -686,7 +686,7 @@
387     CalcProfileID(pIO, &profileID);
388     if (strncmp((char*)profileID.ID8, (char*)m_Header.profileID.ID8, 16) != 0) {
389       sReport += icValidateNonCompliantMsg;
390-      sReport += "Bad Profile ID\r\n";
391+      sReport += "Bad Profile ID\n";
392
393       rv = icMaxStatus(rv, icValidateNonCompliant);
394     }
395@@ -699,7 +699,7 @@
396       sReport += icValidateCriticalErrorMsg;
397       sReport += " - ";
398       sReport += Info.GetTagSigName(i->TagInfo.sig);
399-      sReport += " - Tag has invalid structure!\r\n";
400+      sReport += " - Tag has invalid structure!\n";
401
402       rv = icMaxStatus(rv, icValidateCriticalError);
403     }
404@@ -1141,14 +1141,14 @@
405
406   default:
407     sReport += icValidateCriticalErrorMsg;
408-    sprintf(buf, " - %s: Unknown profile class!\r\n", Info.GetProfileClassSigName(m_Header.deviceClass));
409+    sprintf(buf, " - %s: Unknown profile class!\n", Info.GetProfileClassSigName(m_Header.deviceClass));
410     sReport += buf;
411     rv = icMaxStatus(rv, icValidateCriticalError);
412   }
413
414   if (!Info.IsValidSpace(m_Header.colorSpace)) {
415     sReport += icValidateCriticalErrorMsg;
416-    sprintf(buf, " - %s: Unknown color space!\r\n", Info.GetColorSpaceSigName(m_Header.colorSpace));
417+    sprintf(buf, " - %s: Unknown color space!\n", Info.GetColorSpaceSigName(m_Header.colorSpace));
418     sReport += buf;
419     rv = icMaxStatus(rv, icValidateCriticalError);
420   }
421@@ -1156,7 +1156,7 @@
422   if (m_Header.deviceClass==icSigLinkClass) {
423     if (!Info.IsValidSpace(m_Header.pcs)) {
424       sReport += icValidateCriticalErrorMsg;
425-      sprintf(buf, " - %s: Unknown pcs color space!\r\n", Info.GetColorSpaceSigName(m_Header.pcs));
426+      sprintf(buf, " - %s: Unknown pcs color space!\n", Info.GetColorSpaceSigName(m_Header.pcs));
427       sReport += buf;
428       rv = icMaxStatus(rv, icValidateCriticalError);
429     }
430@@ -1164,7 +1164,7 @@
431   else {
432     if (m_Header.pcs!=icSigXYZData && m_Header.pcs!=icSigLabData) {
433       sReport += icValidateCriticalErrorMsg;
434-      sprintf(buf, " - %s: Invalid pcs color space!\r\n", Info.GetColorSpaceSigName(m_Header.pcs));
435+      sprintf(buf, " - %s: Invalid pcs color space!\n", Info.GetColorSpaceSigName(m_Header.pcs));
436       sReport += buf;
437       rv = icMaxStatus(rv, icValidateCriticalError);
438     }
439@@ -1183,7 +1183,7 @@
440
441   default:
442     sReport += icValidateWarningMsg;
443-    sprintf(buf, " - %s: Unknown platform signature.\r\n", Info.GetPlatformSigName(m_Header.platform));
444+    sprintf(buf, " - %s: Unknown platform signature.\n", Info.GetPlatformSigName(m_Header.platform));
445     sReport += buf;
446     rv = icMaxStatus(rv, icValidateWarning);
447   }
448@@ -1210,7 +1210,7 @@
449
450   default:
451     sReport += icValidateWarningMsg;
452-    sprintf(buf, " - %s: Unregisterd CMM signature.\r\n", Info.GetCmmSigName((icCmmSignature)m_Header.cmmId));
453+    sprintf(buf, " - %s: Unregisterd CMM signature.\n", Info.GetCmmSigName((icCmmSignature)m_Header.cmmId));
454     sReport += buf;
455     rv = icMaxStatus(rv, icValidateWarning);
456   }
457@@ -1224,7 +1224,7 @@
458
459   default:
460     sReport += icValidateCriticalErrorMsg;
461-    sprintf(buf, " - %s: Unknown rendering intent!\r\n", Info.GetRenderingIntentName((icRenderingIntent)m_Header.renderingIntent));
462+    sprintf(buf, " - %s: Unknown rendering intent!\n", Info.GetRenderingIntentName((icRenderingIntent)m_Header.renderingIntent));
463     sReport += buf;
464     rv = icMaxStatus(rv, icValidateCriticalError);
465   }
466@@ -1235,7 +1235,7 @@
467   icFloatNumber Z = icFtoD(m_Header.illuminant.Z);
468   if (X<0.9640 || X>0.9644 || Y!=1.0 || Z<0.8247 || Z>0.8251) {
469     sReport += icValidateNonCompliantMsg;
470-    sReport += " - Non D50 Illuminant XYZ values.\r\n";
471+    sReport += " - Non D50 Illuminant XYZ values.\n";
472     rv = icMaxStatus(rv, icValidateNonCompliant);
473   }
474
475@@ -1245,7 +1245,7 @@
476   }
477   if (sum) {
478     sReport += icValidateNonCompliantMsg;
479-    sReport += " - Reserved value must be zero.\r\n";
480+    sReport += " - Reserved value must be zero.\n";
481     rv = icMaxStatus(rv, icValidateNonCompliant);
482   }
483
484@@ -1278,7 +1278,7 @@
485     {
486       sReport += icValidateWarningMsg;
487       sReport += buf;
488-      sReport += " - Tag exclusion test failed.\r\n";
489+      sReport += " - Tag exclusion test failed.\n";
490       rv = false;
491     }
492   }
493@@ -1292,7 +1292,7 @@
494       {
495         sReport += icValidateWarningMsg;
496         sReport += buf;
497-        sReport += " - Tag exclusion test failed.\r\n";
498+        sReport += " - Tag exclusion test failed.\n";
499         rv = false;
500       }
501       break;
502@@ -1306,7 +1306,7 @@
503       {
504         sReport += icValidateWarningMsg;
505         sReport += buf;
506-        sReport += " - Tag exclusion test failed.\r\n";
507+        sReport += " - Tag exclusion test failed.\n";
508         rv = false;
509       }
510       break;
511@@ -1320,7 +1320,7 @@
512       {
513         sReport += icValidateWarningMsg;
514         sReport += buf;
515-        sReport += " - Tag exclusion test failed.\r\n";
516+        sReport += " - Tag exclusion test failed.\n";
517         rv = false;
518       }
519       break;
520@@ -1362,7 +1362,7 @@
521     if (!IsTypeValid(tagsig, typesig)) {
522       sReport += icValidateNonCompliantMsg;
523       sReport += buf;
524-      sprintf(buf," - %s: Invalid tag type (Might be critical!).\r\n", Info.GetTagTypeSigName(typesig));
525+      sprintf(buf," - %s: Invalid tag type (Might be critical!).\n", Info.GetTagTypeSigName(typesig));
526       sReport += buf;
527       rv = icMaxStatus(rv, icValidateNonCompliant);
528     }
529@@ -1605,7 +1605,7 @@
530 {
531   if (m_Tags->size() <= 0) {
532     sReport += icValidateCriticalErrorMsg;
533-    sReport += "No tags present.\r\n";
534+    sReport += "No tags present.\n";
535     return icValidateCriticalError;
536   }
537
538@@ -1614,7 +1614,7 @@
539   if (!GetTag(icSigProfileDescriptionTag) ||
540      !GetTag(icSigCopyrightTag)) {
541        sReport += icValidateNonCompliantMsg;
542-       sReport += "Required tags missing.\r\n";
543+       sReport += "Required tags missing.\n";
544        rv = icMaxStatus(rv, icValidateNonCompliant);
545   }
546
547@@ -1623,7 +1623,7 @@
548   if (sig != icSigLinkClass) {
549     if (!GetTag(icSigMediaWhitePointTag)) {
550       sReport += icValidateCriticalErrorMsg;
551-      sReport += "Media white point tag missing.\r\n";
552+      sReport += "Media white point tag missing.\n";
553       rv = icMaxStatus(rv, icValidateCriticalError);
554     }
555   }
556@@ -1633,7 +1633,7 @@
557       if (m_Header.colorSpace == icSigGrayData) {
558         if (!GetTag(icSigGrayTRCTag)) {
559           sReport += icValidateCriticalErrorMsg;
560-          sReport += "Gray TRC tag missing.\r\n";
561+          sReport += "Gray TRC tag missing.\n";
562           rv = icMaxStatus(rv, icValidateCriticalError);
563         }
564       }
565@@ -1643,7 +1643,7 @@
566              !GetTag(icSigBlueMatrixColumnTag) || !GetTag(icSigRedTRCTag) ||
567              !GetTag(icSigGreenTRCTag) || !GetTag(icSigBlueTRCTag)) {
568                sReport += icValidateCriticalErrorMsg;
569-               sReport += "Critical tag(s) missing.\r\n";
570+               sReport += "Critical tag(s) missing.\n";
571                rv = icMaxStatus(rv, icValidateCriticalError);
572              }
573         }
574@@ -1654,7 +1654,7 @@
575       if (m_Header.colorSpace == icSigGrayData) {
576         if (!GetTag(icSigGrayTRCTag)) {
577           sReport += icValidateCriticalErrorMsg;
578-          sReport += "Gray TRC tag missing.\r\n";
579+          sReport += "Gray TRC tag missing.\n";
580           rv = icMaxStatus(rv, icValidateCriticalError);
581         }
582       }
583@@ -1664,7 +1664,7 @@
584              !GetTag(icSigBlueMatrixColumnTag) || !GetTag(icSigRedTRCTag) ||
585              !GetTag(icSigGreenTRCTag) || !GetTag(icSigBlueTRCTag)) {
586                sReport += icValidateCriticalErrorMsg;
587-               sReport += "Critical tag(s) missing.\r\n";
588+               sReport += "Critical tag(s) missing.\n";
589                rv = icMaxStatus(rv, icValidateCriticalError);
590              }
591         }
592@@ -1675,7 +1675,7 @@
593       if (m_Header.colorSpace == icSigGrayData) {
594         if (!GetTag(icSigGrayTRCTag)) {
595           sReport += icValidateCriticalErrorMsg;
596-          sReport += "Gray TRC tag missing.\r\n";
597+          sReport += "Gray TRC tag missing.\n";
598           rv = icMaxStatus(rv, icValidateCriticalError);
599         }
600       }
601@@ -1684,13 +1684,13 @@
602            !GetTag(icSigAToB1Tag) || !GetTag(icSigBToA1Tag) ||
603            !GetTag(icSigAToB2Tag) || !GetTag(icSigBToA2Tag)) {
604              sReport += icValidateCriticalErrorMsg;
605-             sReport += "Critical tag(s) missing.\r\n";
606+             sReport += "Critical tag(s) missing.\n";
607              rv = icMaxStatus(rv, icValidateCriticalError);
608            }
609
610         if (!GetTag(icSigGamutTag)) {
611           sReport += icValidateNonCompliantMsg;
612-          sReport += "Gamut tag missing.\r\n";
613+          sReport += "Gamut tag missing.\n";
614           rv = icMaxStatus(rv, icValidateNonCompliant);
615         }
616
617@@ -1713,7 +1713,7 @@
618             case icSig16colorData:
619               if (!GetTag(icSigColorantTableTag)) {
620                 sReport += icValidateNonCompliantMsg;
621-                sReport += "xCLR output profile is missing colorantTableTag\r\n";
622+                sReport += "xCLR output profile is missing colorantTableTag\n";
623                 rv = icMaxStatus(rv, icValidateNonCompliant);
624               }
625
626@@ -1727,14 +1727,14 @@
627     case icSigLinkClass:
628       if (!GetTag(icSigAToB0Tag) || !GetTag(icSigProfileSequenceDescTag)) {
629         sReport += icValidateCriticalErrorMsg;
630-        sReport += "Critical tag(s) missing.\r\n";
631+        sReport += "Critical tag(s) missing.\n";
632         rv = icMaxStatus(rv, icValidateCriticalError);
633       }
634
635       if (icIsSpaceCLR(m_Header.colorSpace)) {
636         if (!GetTag(icSigColorantTableTag)) {
637           sReport += icValidateNonCompliantMsg;
638-          sReport += "Required tag(s) missing.\r\n";
639+          sReport += "Required tag(s) missing.\n";
640           rv = icMaxStatus(rv, icValidateNonCompliant);
641         }
642       }
643@@ -1742,7 +1742,7 @@
644       if (icIsSpaceCLR(m_Header.pcs)) {
645         if (!GetTag(icSigColorantTableOutTag)) {
646           sReport += icValidateNonCompliantMsg;
647-          sReport += "Required tag(s) missing.\r\n";
648+          sReport += "Required tag(s) missing.\n";
649           rv = icMaxStatus(rv, icValidateNonCompliant);
650         }
651       }
652@@ -1751,7 +1751,7 @@
653     case icSigColorSpaceClass:
654       if (!GetTag(icSigAToB0Tag) || !GetTag(icSigBToA0Tag)) {
655         sReport += icValidateCriticalErrorMsg;
656-        sReport += "Critical tag(s) missing.\r\n";
657+        sReport += "Critical tag(s) missing.\n";
658         rv = icMaxStatus(rv, icValidateCriticalError);
659       }
660       break;
661@@ -1759,7 +1759,7 @@
662     case icSigAbstractClass:
663       if (!GetTag(icSigAToB0Tag)) {
664         sReport += icValidateCriticalErrorMsg;
665-        sReport += "Critical tag(s) missing.\r\n";
666+        sReport += "Critical tag(s) missing.\n";
667         rv = icMaxStatus(rv, icValidateCriticalError);
668       }
669       break;
670@@ -1767,7 +1767,7 @@
671     case icSigNamedColorClass:
672       if (!GetTag(icSigNamedColor2Tag)) {
673         sReport += icValidateCriticalErrorMsg;
674-        sReport += "Critical tag(s) missing.\r\n";
675+        sReport += "Critical tag(s) missing.\n";
676         rv = icMaxStatus(rv, icValidateCriticalError);
677       }
678
679@@ -1775,7 +1775,7 @@
680
681     default:
682       sReport += icValidateCriticalErrorMsg;
683-      sReport += "Unknown Profile Class.\r\n";
684+      sReport += "Unknown Profile Class.\n";
685       rv = icMaxStatus(rv, icValidateCriticalError);
686       break;
687   }
688@@ -1852,7 +1852,7 @@
689   // Check for duplicate tags
690   if (!AreTagsUnique()) {
691     sReport += icValidateWarning;
692-    sReport += " - There are duplicate tags.\r\n";
693+    sReport += " - There are duplicate tags.\n";
694     rv =icMaxStatus(rv, icValidateWarning);
695   }
696
697@@ -2180,7 +2180,7 @@
698   if (!pIO) {
699     sReport = icValidateCriticalErrorMsg;
700     sReport += " - ";
701-    sReport += "- Invalid I/O Handle\r\n";
702+    sReport += "- Invalid I/O Handle\n";
703     delete pIO;
704     return NULL;
705   }
706@@ -2264,7 +2264,7 @@
707     sReport = icValidateCriticalErrorMsg;
708     sReport += " - ";
709     sReport += szFilename;
710-    sReport += "- Invalid Filename\r\n";
711+    sReport += "- Invalid Filename\n";
712     delete pFileIO;
713     return NULL;
714   }
715--- misc/SampleICC-1.6.11/IccProfLib/IccTagBasic.cpp    2015-12-22 11:14:38.000000000 -0500
716+++ misc/build/SampleICC-1.6.11/IccProfLib/IccTagBasic.cpp  2026-10-27 01:48:25.095554535 -0500
717@@ -160,7 +160,7 @@
718     CIccInfo Info;
719     sReport += icValidateNonCompliantMsg;
720     sReport += Info.GetSigName(sig);
721-    sReport += " - Reserved Value must be zero.\r\n";
722+    sReport += " - Reserved Value must be zero.\n";
723
724     rv = icValidateNonCompliant;
725   }
726@@ -333,7 +333,7 @@
727   sprintf(buf, "%u Bytes.", m_nSize-4);
728   sDescription += buf;
729
730-  sDescription += "\r\n\r\nData Follows:\r\n";
731+  sDescription += "\n\nData Follows:\n";
732
733   icMemDump(sDescription, m_pData+4, m_nSize-4);
734 }
735@@ -504,7 +504,7 @@
736   if (m_szText && *m_szText)
737     sDescription += m_szText;
738
739-  sDescription += "\"\r\n";
740+  sDescription += "\"\n";
741 }
742
743
744@@ -622,14 +622,14 @@
745       if (m_nBufSize<7) {
746         sReport += icValidateNonCompliantMsg;
747         sReport += sSigName;
748-        sReport += " - Tag must have at least seven text characters.\r\n";
749+        sReport += " - Tag must have at least seven text characters.\n";
750         rv = icMaxStatus(rv, icValidateNonCompliant);
751       }
752       break;
753     default:
754       sReport += icValidateWarningMsg;
755       sReport += sSigName;
756-      sReport += " - Unknown Tag.\r\n";
757+      sReport += " - Unknown Tag.\n";
758       rv = icMaxStatus(rv, icValidateWarning);
759     }
760     int i;
761@@ -637,7 +637,7 @@
762       if (m_szText[i]&0x80) {
763         sReport += icValidateWarningMsg;
764         sReport += sSigName;
765-        sReport += " - Text do not contain 7bit data.\r\n";
766+        sReport += " - Text do not contain 7bit data.\n";
767         rv = icMaxStatus(rv, icValidateWarning);
768       }
769     }
770@@ -645,7 +645,7 @@
771   else {
772     sReport += icValidateWarningMsg;
773     sReport += sSigName;
774-    sReport += " - Empty Tag.\r\n";
775+    sReport += " - Empty Tag.\n";
776     rv = icMaxStatus(rv, icValidateWarning);
777   }
778
779@@ -950,7 +950,7 @@
780   if (m_szText && *m_szText)
781     sDescription += m_szText;
782
783-  sDescription += "\"\r\n";
784+  sDescription += "\"\n";
785 }
786
787
788@@ -1112,7 +1112,7 @@
789   if (m_nScriptSize>67) {
790     sReport += icValidateNonCompliantMsg;
791     sReport += sSigName;
792-    sReport += " - ScriptCode count must not be greater than 67.\r\n";
793+    sReport += " - ScriptCode count must not be greater than 67.\n";
794
795     rv =icMaxStatus(rv, icValidateNonCompliant);
796   }
797@@ -1120,7 +1120,7 @@
798   if (m_bInvalidScript) {
799     sReport += icValidateNonCompliantMsg;
800     sReport += sSigName;
801-    sReport += " - ScriptCode must contain 67 bytes.\r\n";
802+    sReport += " - ScriptCode must contain 67 bytes.\n";
803
804     rv =icMaxStatus(rv, icValidateNonCompliant);
805   }
806@@ -1279,7 +1279,7 @@
807   CIccInfo Fmt;
808
809   sDescription += Fmt.GetSigName(m_nSig);
810-  sDescription += "\r\n";
811+  sDescription += "\n";
812 }
813
814
815@@ -1339,7 +1339,7 @@
816       {
817         sReport += icValidateNonCompliantMsg;
818         sReport += sSigName;
819-        sprintf(buf, " - %s: Unknown Technology.\r\n", Info.GetSigName(m_nSig));
820+        sprintf(buf, " - %s: Unknown Technology.\n", Info.GetSigName(m_nSig));
821         sReport += buf;
822         rv = icMaxStatus(rv, icValidateNonCompliant);
823       }
824@@ -1355,7 +1355,7 @@
825       {
826         sReport += icValidateNonCompliantMsg;
827         sReport += sSigName;
828-        sprintf(buf, " - %s: Unknown Reference Medium Gamut.\r\n", Info.GetSigName(m_nSig));
829+        sprintf(buf, " - %s: Unknown Reference Medium Gamut.\n", Info.GetSigName(m_nSig));
830         sReport += buf;
831         rv = icMaxStatus(rv, icValidateNonCompliant);
832       }
833@@ -1374,7 +1374,7 @@
834       {
835         sReport += icValidateNonCompliantMsg;
836         sReport += sSigName;
837-        sprintf(buf, " - %s: Unknown Colorimetric Intent Image State.\r\n", Info.GetSigName(m_nSig));
838+        sprintf(buf, " - %s: Unknown Colorimetric Intent Image State.\n", Info.GetSigName(m_nSig));
839         sReport += buf;
840         rv = icMaxStatus(rv, icValidateNonCompliant);
841       }
842@@ -1742,13 +1742,13 @@
843
844   sDescription.reserve(sDescription.size() + m_nSize*79);
845
846-  sprintf(buf, "BEGIN_NAMED_COLORS flags=%08x %u %u\r\n", m_nVendorFlags, m_nSize, m_nDeviceCoords);
847+  sprintf(buf, "BEGIN_NAMED_COLORS flags=%08x %u %u\n", m_nVendorFlags, m_nSize, m_nDeviceCoords);
848   sDescription += buf;
849
850-  sprintf(buf, "Prefix=\"%s\"\r\n", m_szPrefix);
851+  sprintf(buf, "Prefix=\"%s\"\n", m_szPrefix);
852   sDescription += buf;
853
854-  sprintf(buf, "Sufix= \"%s\"\r\n", m_szSufix);
855+  sprintf(buf, "Sufix= \"%s\"\n", m_szSufix);
856   sDescription += buf;
857
858   for (i=0; i<m_nSize; i++) {
859@@ -1779,7 +1779,7 @@
860         sDescription += buf;
861       }
862     }
863-    sDescription += "\r\n";
864+    sDescription += "\n";
865
866     pNamedColor = (SIccNamedColorEntry*)((icChar*)pNamedColor + m_nColorEntrySize);
867   }
868@@ -2184,7 +2184,7 @@
869   if (!m_nSize) {
870     sReport += icValidateWarningMsg;
871     sReport += sSigName;
872-    sReport += " - Empty tag!\r\n";
873+    sReport += " - Empty tag!\n";
874     rv = icMaxStatus(rv, icValidateWarning);
875   }
876
877@@ -2194,14 +2194,14 @@
878       if (m_nDeviceCoords != nCoords) {
879         sReport += icValidateNonCompliantMsg;
880         sReport += sSigName;
881-        sReport += " - Incorrect number of device co-ordinates.\r\n";
882+        sReport += " - Incorrect number of device co-ordinates.\n";
883         rv = icMaxStatus(rv, icValidateNonCompliant);
884       }
885     }
886     else {
887       sReport += icValidateWarningMsg;
888       sReport += sSigName;
889-      sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n";
890+      sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n";
891       rv = icMaxStatus(rv, icValidateWarning);
892     }
893   }
894@@ -2387,7 +2387,7 @@
895   icChar buf[128];
896
897   if (m_nSize == 1 ) {
898-    sprintf(buf, "X=%.4lf, Y=%.4lf, Z=%.4lf\r\n", icFtoD(m_XYZ[0].X), icFtoD(m_XYZ[0].Y), icFtoD(m_XYZ[0].Z));
899+    sprintf(buf, "X=%.4lf, Y=%.4lf, Z=%.4lf\n", icFtoD(m_XYZ[0].X), icFtoD(m_XYZ[0].Y), icFtoD(m_XYZ[0].Z));
900     sDescription += buf;
901   }
902   else {
903@@ -2395,7 +2395,7 @@
904     sDescription.reserve(sDescription.size() + m_nSize*79);
905
906     for (i=0; i<m_nSize; i++) {
907-      sprintf(buf, "value[%u]: X=%.4lf, Y=%.4lf, Z=%.4lf\r\n", i, icFtoD(m_XYZ[i].X), icFtoD(m_XYZ[i].Y), icFtoD(m_XYZ[i].Z));
908+      sprintf(buf, "value[%u]: X=%.4lf, Y=%.4lf, Z=%.4lf\n", i, icFtoD(m_XYZ[i].X), icFtoD(m_XYZ[i].Y), icFtoD(m_XYZ[i].Z));
909       sDescription += buf;
910     }
911   }
912@@ -2449,7 +2449,7 @@
913   if (!m_nSize) {
914     sReport += icValidateWarningMsg;
915     sReport += sSigName;
916-    sReport += " - Empty tag.\r\n";
917+    sReport += " - Empty tag.\n";
918
919     rv = icMaxStatus(rv, icValidateWarning);
920     return rv;
921@@ -2655,14 +2655,14 @@
922
923   icUInt32Number i;
924   //sDescription.reserve(sDescription.size() + m_nChannels*79);
925-  sprintf(buf, "Number of Channels : %u\r\n", m_nChannels);
926+  sprintf(buf, "Number of Channels : %u\n", m_nChannels);
927   sDescription += buf;
928
929-  sprintf(buf, "Colorant Encoding : %s\r\n", Fmt.GetColorantEncoding((icColorantEncoding)m_nColorantType));
930+  sprintf(buf, "Colorant Encoding : %s\n", Fmt.GetColorantEncoding((icColorantEncoding)m_nColorantType));
931   sDescription += buf;
932
933   for (i=0; i<m_nChannels; i++) {
934-    sprintf(buf, "value[%u]: x=%.3lf, y=%.3lf\r\n", i, icUFtoD(m_xy[i].x), icUFtoD(m_xy[i].y));
935+    sprintf(buf, "value[%u]: x=%.3lf, y=%.3lf\n", i, icUFtoD(m_xy[i].x), icUFtoD(m_xy[i].y));
936     sDescription += buf;
937   }
938
939@@ -2719,7 +2719,7 @@
940     if (m_nChannels!=3) {
941       sReport += icValidateCriticalErrorMsg;
942       sReport += sSigName;
943-      sReport += " - Number of device channels must be three.\r\n";
944+      sReport += " - Number of device channels must be three.\n";
945       rv = icMaxStatus(rv, icValidateCriticalError);
946     }
947
948@@ -2731,7 +2731,7 @@
949                (m_xy[2].x != icDtoUF((icFloatNumber)0.150)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.060)) ) {
950                 sReport += icValidateNonCompliantMsg;
951                 sReport += sSigName;
952-                sReport += " - Chromaticity data does not match specification.\r\n";
953+                sReport += " - Chromaticity data does not match specification.\n";
954                 rv = icMaxStatus(rv, icValidateNonCompliant);
955               }
956           break;
957@@ -2744,7 +2744,7 @@
958                (m_xy[2].x != icDtoUF((icFloatNumber)0.155)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.070)) ) {
959               sReport += icValidateNonCompliantMsg;
960               sReport += sSigName;
961-              sReport += " - Chromaticity data does not match specification.\r\n";
962+              sReport += " - Chromaticity data does not match specification.\n";
963               rv = icMaxStatus(rv, icValidateNonCompliant);
964             }
965             break;
966@@ -2757,7 +2757,7 @@
967                (m_xy[2].x != icDtoUF((icFloatNumber)0.15)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.06)) ) {
968               sReport += icValidateNonCompliantMsg;
969               sReport += sSigName;
970-              sReport += " - Chromaticity data does not match specification.\r\n";
971+              sReport += " - Chromaticity data does not match specification.\n";
972               rv = icMaxStatus(rv, icValidateNonCompliant);
973             }
974             break;
975@@ -2770,7 +2770,7 @@
976                (m_xy[2].x != icDtoUF((icFloatNumber)0.155)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.070)) ) {
977               sReport += icValidateNonCompliantMsg;
978               sReport += sSigName;
979-              sReport += " - Chromaticity data does not match specification.\r\n";
980+              sReport += " - Chromaticity data does not match specification.\n";
981               rv = icMaxStatus(rv, icValidateNonCompliant);
982             }
983             break;
984@@ -2780,7 +2780,7 @@
985         {
986           sReport += icValidateNonCompliantMsg;
987           sReport += sSigName;
988-          sReport += " - Invalid colorant type encoding.\r\n";
989+          sReport += " - Invalid colorant type encoding.\n";
990           rv = icMaxStatus(rv, icValidateNonCompliant);
991         }
992     }
993@@ -2986,27 +2986,27 @@
994
995   if (m_nSize == 1 ) {
996     if (Tsig==icSigS15Fixed16ArrayType)
997-      sprintf(buf, "Value = %.4lf\r\n", icFtoD(m_Num[0]));
998+      sprintf(buf, "Value = %.4lf\n", icFtoD(m_Num[0]));
999     else
1000-      sprintf(buf, "Value = %.4lf\r\n", icUFtoD(m_Num[0]));
1001+      sprintf(buf, "Value = %.4lf\n", icUFtoD(m_Num[0]));
1002     sDescription += buf;
1003   }
1004   else {
1005     icUInt32Number i;
1006
1007     if (Tsig==icSigS15Fixed16ArrayType && m_nSize==9) {
1008-      sDescription += "Matrix Form:\r\n";
1009+      sDescription += "Matrix Form:\n";
1010       icMatrixDump(sDescription, (icS15Fixed16Number*)m_Num);
1011
1012-      sDescription += "\r\nArrayForm:\r\n";
1013+      sDescription += "\nArrayForm:\n";
1014     }
1015     sDescription.reserve(sDescription.size() + m_nSize*79);
1016
1017     for (i=0; i<m_nSize; i++) {
1018       if (Tsig==icSigS15Fixed16ArrayType)
1019-        sprintf(buf, "Value[%u] = %.4lf\r\n", i, icFtoD(m_Num[i]));
1020+        sprintf(buf, "Value[%u] = %.4lf\n", i, icFtoD(m_Num[i]));
1021       else
1022-        sprintf(buf, "Value[%u] = %.4lf\r\n", i, icUFtoD(m_Num[i]));
1023+        sprintf(buf, "Value[%u] = %.4lf\n", i, icUFtoD(m_Num[i]));
1024       sDescription += buf;
1025     }
1026   }
1027@@ -3276,19 +3276,19 @@
1028   if (m_nSize == 1 ) {
1029     switch (sizeof(T)) {
1030       case 1:
1031-        sprintf(buf, "Value = %u (0x02%x)\r\n", m_Num[0], m_Num[0]);
1032+        sprintf(buf, "Value = %u (0x02%x)\n", m_Num[0], m_Num[0]);
1033         break;
1034       case 2:
1035-        sprintf(buf, "Value = %u (0x04%x)\r\n", m_Num[0], m_Num[0]);
1036+        sprintf(buf, "Value = %u (0x04%x)\n", m_Num[0], m_Num[0]);
1037         break;
1038       case 4:
1039-        sprintf(buf, "Value = %u (0x08%x)\r\n", m_Num[0], m_Num[0]);
1040+        sprintf(buf, "Value = %u (0x08%x)\n", m_Num[0], m_Num[0]);
1041         break;
1042       case 8:
1043-        sprintf(buf, "Value = %u (0x016%x)\r\n", m_Num[0], m_Num[0]);
1044+        sprintf(buf, "Value = %u (0x016%x)\n", m_Num[0], m_Num[0]);
1045         break;
1046       default:
1047-        sprintf(buf, "Value = %u (0x%x)\r\n", m_Num[0], m_Num[0]);
1048+        sprintf(buf, "Value = %u (0x%x)\n", m_Num[0], m_Num[0]);
1049         break;
1050     }
1051     sDescription += buf;
1052@@ -3300,19 +3300,19 @@
1053     for (i=0; i<m_nSize; i++) {
1054       switch (sizeof(T)) {
1055       case 1:
1056-        sprintf(buf, "Value = %u (0x02%x)\r\n", m_Num[i], m_Num[i]);
1057+        sprintf(buf, "Value = %u (0x02%x)\n", m_Num[i], m_Num[i]);
1058         break;
1059       case 2:
1060-        sprintf(buf, "Value = %u (0x04%x)\r\n", m_Num[i], m_Num[i]);
1061+        sprintf(buf, "Value = %u (0x04%x)\n", m_Num[i], m_Num[i]);
1062         break;
1063       case 4:
1064-        sprintf(buf, "Value = %u (0x08%x)\r\n", m_Num[i], m_Num[i]);
1065+        sprintf(buf, "Value = %u (0x08%x)\n", m_Num[i], m_Num[i]);
1066         break;
1067       case 8:
1068-        sprintf(buf, "Value = %u (0x016%x)\r\n", m_Num[i], m_Num[i]);
1069+        sprintf(buf, "Value = %u (0x016%x)\n", m_Num[i], m_Num[i]);
1070         break;
1071       default:
1072-        sprintf(buf, "Value = %u (0x%x)\r\n", m_Num[i], m_Num[i]);
1073+        sprintf(buf, "Value = %u (0x%x)\n", m_Num[i], m_Num[i]);
1074         break;
1075       }
1076       sDescription += buf;
1077@@ -3327,7 +3327,7 @@
1078   icChar buf[128];
1079
1080   if (m_nSize == 1 ) {
1081-    sprintf(buf, "Value = %llu (0x016%llx)\r\n", m_Num[0], m_Num[0]);
1082+    sprintf(buf, "Value = %llu (0x016%llx)\n", m_Num[0], m_Num[0]);
1083     sDescription += buf;
1084   }
1085   else {
1086@@ -3335,7 +3335,7 @@
1087     sDescription.reserve(sDescription.size() + m_nSize*79);
1088
1089     for (i=0; i<m_nSize; i++) {
1090-      sprintf(buf, "Value = %llu (0x016%llx)\r\n", m_Num[i], m_Num[i]);
1091+      sprintf(buf, "Value = %llu (0x016%llx)\n", m_Num[i], m_Num[i]);
1092       sDescription += buf;
1093     }
1094   }
1095@@ -3530,15 +3530,15 @@
1096   CIccInfo Fmt;
1097   icChar buf[128];
1098
1099-   sDescription += Fmt.GetStandardObserverName(m_Data.stdObserver); sDescription += "\r\n";
1100-   sprintf(buf, "Backing measurement: X=%.4lf, Y=%.4lf, Z=%.4lf\r\n",
1101+   sDescription += Fmt.GetStandardObserverName(m_Data.stdObserver); sDescription += "\n";
1102+   sprintf(buf, "Backing measurement: X=%.4lf, Y=%.4lf, Z=%.4lf\n",
1103            icFtoD(m_Data.backing.X),
1104            icFtoD(m_Data.backing.Y),
1105            icFtoD(m_Data.backing.Z));
1106    sDescription += buf;
1107-   sDescription += Fmt.GetMeasurementGeometryName(m_Data.geometry); sDescription += "\r\n";
1108-   sDescription += Fmt.GetMeasurementFlareName(m_Data.flare); sDescription += "\r\n";
1109-   sDescription += Fmt.GetIlluminantName(m_Data.illuminant); sDescription += "\r\n";
1110+   sDescription += Fmt.GetMeasurementGeometryName(m_Data.geometry); sDescription += "\n";
1111+   sDescription += Fmt.GetMeasurementFlareName(m_Data.flare); sDescription += "\n";
1112+   sDescription += Fmt.GetIlluminantName(m_Data.illuminant); sDescription += "\n";
1113 }
1114
1115
1116@@ -3572,7 +3572,7 @@
1117   default:
1118     sReport += icValidateNonCompliantMsg;
1119     sReport += sSigName;
1120-    sReport += " - Invalid standard observer encoding.\r\n";
1121+    sReport += " - Invalid standard observer encoding.\n";
1122     rv = icMaxStatus(rv, icValidateNonCompliant);
1123   }
1124
1125@@ -3585,7 +3585,7 @@
1126   default:
1127     sReport += icValidateNonCompliantMsg;
1128     sReport += sSigName;
1129-    sReport += " - Invalid measurement geometry encoding.\r\n";
1130+    sReport += " - Invalid measurement geometry encoding.\n";
1131     rv = icMaxStatus(rv, icValidateNonCompliant);
1132   }
1133
1134@@ -3604,7 +3604,7 @@
1135   default:
1136     sReport += icValidateNonCompliantMsg;
1137     sReport += sSigName;
1138-    sReport += " - Invalid standard illuminant encoding.\r\n";
1139+    sReport += " - Invalid standard illuminant encoding.\n";
1140     rv = icMaxStatus(rv, icValidateNonCompliant);
1141   }
1142
1143@@ -4105,9 +4105,9 @@
1144
1145   for (i=m_Strings->begin(); i!=m_Strings->end(); i++) {
1146     if (i!=m_Strings->begin())
1147-      sDescription += "\r\n";
1148+      sDescription += "\n";
1149
1150-    sprintf(szBuf, "Language = '%c%c', Region = '%c%c'\r\n",
1151+    sprintf(szBuf, "Language = '%c%c', Region = '%c%c'\n",
1152       i->m_nLanguageCode>>8, i->m_nLanguageCode,
1153       i->m_nCountryCode>>8, i->m_nCountryCode);
1154
1155@@ -4122,7 +4122,7 @@
1156     i->GetAnsi(szBuf, nSize);
1157     sDescription += "\"";
1158     sDescription += szBuf;
1159-    sDescription += "\"\r\n";
1160+    sDescription += "\"\n";
1161   }
1162 }
1163
1164@@ -4151,7 +4151,7 @@
1165   if (!m_Strings->size()) {
1166     sReport += icValidateWarningMsg;
1167     sReport += sSigName;
1168-    sReport += " - Empty tag!\r\n";
1169+    sReport += " - Empty tag!\n";
1170     rv = icMaxStatus(rv, icValidateWarning);
1171   }
1172
1173@@ -4477,15 +4477,15 @@
1174 {
1175   icChar buf[128];
1176
1177-  sDescription = "\r\nData:\r\n";
1178+  sDescription = "\nData:\n";
1179
1180   if (IsTypeAscii()) {
1181-      sprintf(buf, "%s\r\n", (icChar*)m_pData);
1182+      sprintf(buf, "%s\n", (icChar*)m_pData);
1183       sDescription += buf;
1184   }
1185   else
1186     for (int i = 0; i<(int)m_nSize; i++) {
1187-      sprintf(buf, "%d\r\n", m_pData[i]);
1188+      sprintf(buf, "%d\n", m_pData[i]);
1189       sDescription += buf;
1190     }
1191
1192@@ -4543,7 +4543,7 @@
1193   default:
1194     sReport += icValidateNonCompliantMsg;
1195     sReport += sSigName;
1196-    sReport += " - Invalid data flag encoding.\r\n";
1197+    sReport += " - Invalid data flag encoding.\n";
1198     rv = icMaxStatus(rv, icValidateNonCompliant);
1199   }
1200
1201@@ -4708,11 +4708,11 @@
1202   icChar buf[128];
1203
1204   sDescription = "Date = ";
1205-  sprintf(buf, "%u-%u-%u\r\n", m_DateTime.month, m_DateTime.day, m_DateTime.year);
1206+  sprintf(buf, "%u-%u-%u\n", m_DateTime.month, m_DateTime.day, m_DateTime.year);
1207   sDescription += buf;
1208
1209   sDescription += "Time = ";
1210-  sprintf(buf, "%u:%u:%u\r\n", m_DateTime.hours, m_DateTime.minutes, m_DateTime.seconds);
1211+  sprintf(buf, "%u:%u:%u\n", m_DateTime.hours, m_DateTime.minutes, m_DateTime.seconds);
1212   sDescription += buf;
1213 }
1214
1215@@ -4928,12 +4928,12 @@
1216 {
1217   icChar buf[128];
1218
1219-  sprintf(buf, "Colorant Count : %u\r\n", m_nCount);
1220+  sprintf(buf, "Colorant Count : %u\n", m_nCount);
1221   sDescription += buf;
1222-  sDescription += "Order of Colorants:\r\n";
1223+  sDescription += "Order of Colorants:\n";
1224
1225   for (int i=0; i<(int)m_nCount; i++) {
1226-    sprintf(buf, "%u\r\n", m_pData[i]);
1227+    sprintf(buf, "%u\n", m_pData[i]);
1228     sDescription += buf;
1229   }
1230 }
1231@@ -4988,7 +4988,7 @@
1232   if (!pProfile) {
1233     sReport += icValidateWarningMsg;
1234     sReport += sSigName;
1235-    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n";
1236+    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n";
1237     rv = icMaxStatus(rv, icValidateWarning);
1238     return rv;
1239   }
1240@@ -4997,7 +4997,7 @@
1241     if (m_nCount != icGetSpaceSamples(pProfile->m_Header.colorSpace)) {
1242       sReport += icValidateNonCompliantMsg;
1243       sReport += sSigName;
1244-      sReport += " - Incorrect number of colorants.\r\n";
1245+      sReport += " - Incorrect number of colorants.\n";
1246       rv = icMaxStatus(rv, icValidateNonCompliant);
1247     }
1248   }
1249@@ -5005,14 +5005,14 @@
1250     if (m_nCount != icGetSpaceSamples(pProfile->m_Header.pcs)) {
1251       sReport += icValidateNonCompliantMsg;
1252       sReport += sSigName;
1253-      sReport += " - Incorrect number of colorants.\r\n";
1254+      sReport += " - Incorrect number of colorants.\n";
1255       rv = icMaxStatus(rv, icValidateNonCompliant);
1256     }
1257   }
1258   else {
1259     sReport += icValidateWarningMsg;
1260     sReport += sSigName;
1261-    sReport += " - Unknown number of required colorants.\r\n";
1262+    sReport += " - Unknown number of required colorants.\n";
1263     rv = icMaxStatus(rv, icValidateWarning);
1264   }
1265
1266@@ -5224,7 +5224,7 @@
1267   icUInt32Number i, nLen, nMaxLen=0;
1268   icFloatNumber Lab[3];
1269
1270-  sprintf(buf, "BEGIN_COLORANTS %u\r\n", m_nCount);
1271+  sprintf(buf, "BEGIN_COLORANTS %u\n", m_nCount);
1272   sDescription += buf;
1273
1274   for (i=0; i<m_nCount; i++) {
1275@@ -5235,11 +5235,11 @@
1276   sDescription += "# NAME ";
1277
1278   if (m_PCS == icSigXYZData) {
1279-    sprintf(buf, "XYZ_X XYZ_Y XYZ_Z\r\n");
1280+    sprintf(buf, "XYZ_X XYZ_Y XYZ_Z\n");
1281     sDescription += buf;
1282   }
1283   else {
1284-    sprintf(buf, "Lab_L Lab_a Lab_b\r\n");
1285+    sprintf(buf, "Lab_L Lab_a Lab_b\n");
1286     sDescription += buf;
1287   }
1288   for (i=0; i<m_nCount; i++) {
1289@@ -5250,7 +5250,7 @@
1290     sDescription += buf;
1291
1292     if (m_PCS == icSigXYZData) {
1293-      sprintf(buf, "%7.4lf %7.4lf %7.4lf\r\n", icUSFtoD(m_pData[i].data[0]), icUSFtoD(m_pData[i].data[1]), icUSFtoD(m_pData[i].data[2]));
1294+      sprintf(buf, "%7.4lf %7.4lf %7.4lf\n", icUSFtoD(m_pData[i].data[0]), icUSFtoD(m_pData[i].data[1]), icUSFtoD(m_pData[i].data[2]));
1295       sDescription += buf;
1296     }
1297     else {
1298@@ -5258,7 +5258,7 @@
1299       Lab[1] = icU16toF(m_pData[i].data[1]);
1300       Lab[2] = icU16toF(m_pData[i].data[2]);
1301       icLabFromPcs(Lab);
1302-      sprintf(buf, "%7.4lf %8.4lf %8.4lf\r\n", Lab[0], Lab[1], Lab[2]);
1303+      sprintf(buf, "%7.4lf %8.4lf %8.4lf\n", Lab[0], Lab[1], Lab[2]);
1304       sDescription += buf;
1305     }
1306   }
1307@@ -5313,7 +5313,7 @@
1308   if (!pProfile) {
1309     sReport += icValidateWarningMsg;
1310     sReport += sSigName;
1311-    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n";
1312+    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n";
1313     rv = icMaxStatus(rv, icValidateWarning);
1314     return rv;
1315   }
1316@@ -5323,13 +5323,13 @@
1317     if (pProfile->m_Header.deviceClass!=icSigLinkClass) {
1318       sReport += icValidateNonCompliantMsg;
1319       sReport += sSigName;
1320-      sReport += " - Use of this tag is allowed only in DeviceLink Profiles.\r\n";
1321+      sReport += " - Use of this tag is allowed only in DeviceLink Profiles.\n";
1322       rv = icMaxStatus(rv, icValidateNonCompliant);
1323     }
1324     if (m_nCount != icGetSpaceSamples(pProfile->m_Header.pcs)) {
1325       sReport += icValidateNonCompliantMsg;
1326       sReport += sSigName;
1327-      sReport += " - Incorrect number of colorants.\r\n";
1328+      sReport += " - Incorrect number of colorants.\n";
1329       rv = icMaxStatus(rv, icValidateNonCompliant);
1330     }
1331   }
1332@@ -5337,7 +5337,7 @@
1333     if (m_nCount != icGetSpaceSamples(pProfile->m_Header.colorSpace)) {
1334       sReport += icValidateNonCompliantMsg;
1335       sReport += sSigName;
1336-      sReport += " - Incorrect number of colorants.\r\n";
1337+      sReport += " - Incorrect number of colorants.\n";
1338       rv = icMaxStatus(rv, icValidateNonCompliant);
1339     }
1340   }
1341@@ -5524,13 +5524,13 @@
1342   icChar buf[128];
1343   CIccInfo Fmt;
1344
1345-  sprintf(buf, "Illuminant Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\r\n",
1346+  sprintf(buf, "Illuminant Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\n",
1347                icFtoD(m_XYZIllum.X),
1348                icFtoD(m_XYZIllum.Y),
1349                icFtoD(m_XYZIllum.Z));
1350   sDescription += buf;
1351
1352-  sprintf(buf, "Surround Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\r\n",
1353+  sprintf(buf, "Surround Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\n",
1354                icFtoD(m_XYZSurround.X),
1355                icFtoD(m_XYZSurround.Y),
1356                icFtoD(m_XYZSurround.Z));
1357@@ -5539,7 +5539,7 @@
1358   sDescription += "Illuminant Type: ";
1359
1360   sDescription += Fmt.GetIlluminantName(m_illumType);
1361-  sDescription += "\r\n";
1362+  sDescription += "\n";
1363
1364 }
1365
1366@@ -6068,32 +6068,32 @@
1367   icChar buf[128], buf2[28];
1368   icUInt32Number count=0;
1369
1370-  sprintf(buf, "Number of Profile Description Structures: %u\r\n", (icUInt32Number)m_Descriptions->size());
1371+  sprintf(buf, "Number of Profile Description Structures: %u\n", (icUInt32Number)m_Descriptions->size());
1372   sDescription += buf;
1373
1374   for (i=m_Descriptions->begin(); i!=m_Descriptions->end(); i++, count++) {
1375-    sDescription += "\r\n";
1376+    sDescription += "\n";
1377
1378-    sprintf(buf, "Profile Description Structure Number [%u] follows:\r\n", count+1);
1379+    sprintf(buf, "Profile Description Structure Number [%u] follows:\n", count+1);
1380     sDescription += buf;
1381
1382-    sprintf(buf, "Device Manufacturer Signature: %s\r\n", icGetSig(buf2, i->m_deviceMfg, false));
1383+    sprintf(buf, "Device Manufacturer Signature: %s\n", icGetSig(buf2, i->m_deviceMfg, false));
1384     sDescription += buf;
1385
1386-    sprintf(buf, "Device Model Signature: %s\r\n", icGetSig(buf2, i->m_deviceModel, false));
1387+    sprintf(buf, "Device Model Signature: %s\n", icGetSig(buf2, i->m_deviceModel, false));
1388     sDescription += buf;
1389
1390-    sprintf(buf, "Device Attributes: %08x%08x\r\n", (icUInt32Number)(i->m_attributes >> 32), (icUInt32Number)(i->m_attributes));
1391+    sprintf(buf, "Device Attributes: %08x%08x\n", (icUInt32Number)(i->m_attributes >> 32), (icUInt32Number)(i->m_attributes));
1392     sDescription += buf;
1393
1394-    sprintf(buf, "Device Technology Signature: %s\r\n", icGetSig(buf2, i->m_technology, false));
1395+    sprintf(buf, "Device Technology Signature: %s\n", icGetSig(buf2, i->m_technology, false));
1396     sDescription += buf;
1397
1398-    sprintf(buf, "Description of device manufacturer: \r\n");
1399+    sprintf(buf, "Description of device manufacturer: \n");
1400     sDescription += buf;
1401     i->m_deviceMfgDesc.Describe(sDescription);
1402
1403-    sprintf(buf, "Description of device model: \r\n");
1404+    sprintf(buf, "Description of device model: \n");
1405     sDescription += buf;
1406     i->m_deviceModelDesc.Describe(sDescription);
1407   }
1408@@ -6154,7 +6154,7 @@
1409       {
1410         sReport += icValidateNonCompliantMsg;
1411         sReport += sSigName;
1412-        sprintf(buf, " - %s: Unknown Technology.\r\n", Info.GetSigName(i->m_technology));
1413+        sprintf(buf, " - %s: Unknown Technology.\n", Info.GetSigName(i->m_technology));
1414         sReport += buf;
1415         rv = icMaxStatus(rv, icValidateNonCompliant);
1416       }
1417@@ -6164,7 +6164,7 @@
1418       sReport += icValidateNonCompliantMsg;
1419       sReport += sSigName;
1420
1421-      sReport += " Contains non-aligned deviceMfgDesc text tag information\r\n";
1422+      sReport += " Contains non-aligned deviceMfgDesc text tag information\n";
1423
1424       rv = icMaxStatus(rv, icValidateNonCompliant);
1425     }
1426@@ -6173,7 +6173,7 @@
1427       sReport += icValidateNonCompliantMsg;
1428       sReport += sSigName;
1429
1430-      sReport += " Contains non-aligned deviceModelDesc text tag information\r\n";
1431+      sReport += " Contains non-aligned deviceModelDesc text tag information\n";
1432
1433       rv = icMaxStatus(rv, icValidateNonCompliant);
1434     }
1435@@ -6442,25 +6442,25 @@
1436   CIccResponse16List::iterator j;
1437
1438   sDescription += "Measurement Unit: ";
1439-  sDescription += Fmt.GetMeasurementUnit((icSignature)GetMeasurementType()); sDescription += "\r\n";
1440+  sDescription += Fmt.GetMeasurementUnit((icSignature)GetMeasurementType()); sDescription += "\n";
1441
1442
1443   for (int i=0; i<m_nChannels; i++) {
1444     nResponseList = m_Response16ListArray[i];
1445
1446-    sDescription += "\r\n";
1447-    sprintf(buf, "Maximum Colorant XYZ Measurement for Channel-%u : X=%.4lf, Y=%.4lf, Z=%.4lf\r\n", i+1,
1448+    sDescription += "\n";
1449+    sprintf(buf, "Maximum Colorant XYZ Measurement for Channel-%u : X=%.4lf, Y=%.4lf, Z=%.4lf\n", i+1,
1450       icFtoD(m_maxColorantXYZ[i].X), icFtoD(m_maxColorantXYZ[i].Y), icFtoD(m_maxColorantXYZ[i].Z));
1451     sDescription += buf;
1452
1453-    sprintf(buf, "Number of Measurements for Channel-%u : %u\r\n", i+1, (icUInt32Number)nResponseList.size());
1454+    sprintf(buf, "Number of Measurements for Channel-%u : %u\n", i+1, (icUInt32Number)nResponseList.size());
1455     sDescription += buf;
1456
1457-    sprintf(buf, "Measurement Data for Channel-%u follows:\r\n", i+1);
1458+    sprintf(buf, "Measurement Data for Channel-%u follows:\n", i+1);
1459     sDescription += buf;
1460
1461     for (j=nResponseList.begin(); j!=nResponseList.end(); j++) {
1462-      sprintf(buf, "Device Value= %u : Measurement Value= %.4lf\r\n", j->deviceCode, icFtoD(j->measurementValue));
1463+      sprintf(buf, "Device Value= %u : Measurement Value= %.4lf\n", j->deviceCode, icFtoD(j->measurementValue));
1464       sDescription += buf;
1465     }
1466   }
1467@@ -6502,14 +6502,14 @@
1468   default:
1469     sReport += icValidateNonCompliantMsg;
1470     sReport += sSigName;
1471-    sReport += " - Unknown measurement unit signature.\r\n";
1472+    sReport += " - Unknown measurement unit signature.\n";
1473     rv = icMaxStatus(rv, icValidateNonCompliant);
1474   }
1475
1476   if (!m_nChannels) {
1477     sReport += icValidateNonCompliantMsg;
1478     sReport += sSigName;
1479-    sReport += " - Incorrect number of channels.\r\n";
1480+    sReport += " - Incorrect number of channels.\n";
1481     rv = icMaxStatus(rv, icValidateNonCompliant);
1482     return rv;
1483   }
1484@@ -6747,17 +6747,17 @@
1485   CIccResponseCurveSet::iterator i;
1486   icChar buf[128];
1487
1488-  sprintf(buf, "Number of Channels: %u\r\n", m_nChannels);
1489+  sprintf(buf, "Number of Channels: %u\n", m_nChannels);
1490   sDescription += buf;
1491
1492-  sprintf(buf, "Number of Measurement Types used: %u\r\n", (icUInt32Number)m_ResponseCurves->size());
1493+  sprintf(buf, "Number of Measurement Types used: %u\n", (icUInt32Number)m_ResponseCurves->size());
1494   sDescription += buf;
1495
1496   int count = 0;
1497   for (i=m_ResponseCurves->begin(); i!=m_ResponseCurves->end(); i++, count++) {
1498-     sDescription += "\r\n";
1499+     sDescription += "\n";
1500
1501-    sprintf(buf, "Response Curve for measurement type [%u] follows:\r\n", count+1);
1502+    sprintf(buf, "Response Curve for measurement type [%u] follows:\n", count+1);
1503     sDescription += buf;
1504
1505     i->Describe(sDescription);
1506@@ -6926,7 +6926,7 @@
1507   if (!pProfile) {
1508     sReport += icValidateWarningMsg;
1509     sReport += sSigName;
1510-    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n";
1511+    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n";
1512     rv = icMaxStatus(rv, icValidateWarning);
1513     return rv;
1514   }
1515@@ -6934,13 +6934,13 @@
1516   if (m_nChannels!=icGetSpaceSamples(pProfile->m_Header.colorSpace)) {
1517     sReport += icValidateWarningMsg;
1518     sReport += sSigName;
1519-    sReport += " - Incorrect number of channels.\r\n";
1520+    sReport += " - Incorrect number of channels.\n";
1521   }
1522
1523   if (!GetNumResponseCurveTypes()) {
1524     sReport += icValidateWarningMsg;
1525     sReport += sSigName;
1526-    sReport += " - Empty Tag!.\r\n";
1527+    sReport += " - Empty Tag!.\n";
1528     rv = icMaxStatus(rv, icValidateWarning);
1529   }
1530   else {
1531--- misc/SampleICC-1.6.11/IccProfLib/IccTagLut.cpp  2016-11-22 11:12:30.000000000 -0500
1532+++ misc/build/SampleICC-1.6.11/IccProfLib/IccTagLut.cpp    2026-10-27 01:48:25.150993714 -0500
1533@@ -316,23 +316,23 @@
1534   icChar buf[128], *ptr;
1535
1536   if (!m_nSize) {
1537-    sprintf(buf, "BEGIN_CURVE In_Out\r\n");
1538+    sprintf(buf, "BEGIN_CURVE In_Out\n");
1539     sDescription += buf;
1540-    sDescription += "Y = X\r\n";
1541+    sDescription += "Y = X\n";
1542   }
1543   else if (m_nSize==1) {
1544     icFloatNumber dGamma = (icFloatNumber)(m_Curve[0] * 256.0);
1545-    sprintf(buf, "BEGIN_CURVE In_Out\r\n");
1546+    sprintf(buf, "BEGIN_CURVE In_Out\n");
1547     sDescription += buf;
1548-    sprintf(buf, "Y = X ^ %.4lf\r\n", dGamma);
1549+    sprintf(buf, "Y = X ^ %.4lf\n", dGamma);
1550     sDescription += buf;
1551   }
1552   else {
1553     int i;
1554
1555-    sprintf(buf, "BEGIN_LUT In_Out 1 1\r\n");
1556+    sprintf(buf, "BEGIN_LUT In_Out 1 1\n");
1557     sDescription += buf;
1558-    sDescription += "IN OUT\r\n";
1559+    sDescription += "IN OUT\n";
1560
1561     for (i=0; i<(int)m_nSize; i++) {
1562       ptr = buf;
1563@@ -347,12 +347,12 @@
1564
1565       ptr += strlen(ptr);
1566
1567-      strcpy(ptr, "\r\n");
1568+      strcpy(ptr, "\n");
1569
1570       sDescription += buf;
1571     }
1572   }
1573-  sDescription += "\r\n";
1574+  sDescription += "\n";
1575 }
1576
1577
1578@@ -376,23 +376,23 @@
1579   icChar buf[128], *ptr;
1580
1581   if (!m_nSize) {
1582-    sprintf(buf, "BEGIN_CURVE %s\r\n", szName);
1583+    sprintf(buf, "BEGIN_CURVE %s\n", szName);
1584     sDescription += buf;
1585-    sDescription += "Y = X\r\n";
1586+    sDescription += "Y = X\n";
1587   }
1588   else if (m_nSize==1) {
1589     icFloatNumber dGamma = (icFloatNumber)(m_Curve[0] * 256.0);
1590-    sprintf(buf, "BEGIN_CURVE %s\r\n", szName);
1591+    sprintf(buf, "BEGIN_CURVE %s\n", szName);
1592     sDescription += buf;
1593-    sprintf(buf, "Y = X ^ %.4lf\r\n", dGamma);
1594+    sprintf(buf, "Y = X ^ %.4lf\n", dGamma);
1595     sDescription += buf;
1596   }
1597   else {
1598     int i;
1599
1600-    sprintf(buf, "BEGIN_LUT %s 1 1\r\n", szName);
1601+    sprintf(buf, "BEGIN_LUT %s 1 1\n", szName);
1602     sDescription += buf;
1603-    sDescription += "IN OUT\r\n";
1604+    sDescription += "IN OUT\n";
1605
1606     sDescription.reserve(sDescription.size() + m_nSize * 20);
1607
1608@@ -409,12 +409,12 @@
1609
1610       ptr += strlen(ptr);
1611
1612-      strcpy(ptr, "\r\n");
1613+      strcpy(ptr, "\n");
1614
1615       sDescription += buf;
1616     }
1617   }
1618-  sDescription += "\r\n";
1619+  sDescription += "\n";
1620 }
1621
1622
1623@@ -607,7 +607,7 @@
1624         if (m_Curve[0]>0.0 || m_Curve[m_nSize-1]<1.0) {
1625           sReport += icValidateWarningMsg;
1626           sReport += sSigName;
1627-          sReport += " - Curve cannot be accurately inverted.\r\n";
1628+          sReport += " - Curve cannot be accurately inverted.\n";
1629           rv = icMaxStatus(rv, icValidateWarning);
1630         }
1631       }
1632@@ -816,32 +816,32 @@
1633 {
1634   icChar buf[128];
1635
1636-  sprintf(buf, "FunctionType: %04Xh\r\n", m_nFunctionType);
1637+  sprintf(buf, "FunctionType: %04Xh\n", m_nFunctionType);
1638   sDescription += buf;
1639
1640   switch(m_nFunctionType) {
1641 case 0x0000:
1642-  sprintf(buf, "Y = X ^ %.4lf\r\n", m_dParam[0]);
1643+  sprintf(buf, "Y = X ^ %.4lf\n", m_dParam[0]);
1644   sDescription += buf;
1645   return;
1646
1647 case 0x0001:
1648-  sprintf(buf, "Y = 0 when (X < %.4lf / %.4lf)\r\n",
1649+  sprintf(buf, "Y = 0 when (X < %.4lf / %.4lf)\n",
1650     -m_dParam[2], m_dParam[1]);
1651   sDescription += buf;
1652
1653-  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf   when (X >= %.4lf / %.4lf)\r\n",
1654+  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf   when (X >= %.4lf / %.4lf)\n",
1655     m_dParam[1], m_dParam[2], m_dParam[0],
1656     m_dParam[2], m_dParam[1]);
1657   sDescription += buf;
1658   return;
1659
1660 case 0x0002:
1661-  sprintf(buf, "Y = %.4lf   when (X < %.4lf / %.4lf)\r\n", m_dParam[3],
1662+  sprintf(buf, "Y = %.4lf   when (X < %.4lf / %.4lf)\n", m_dParam[3],
1663     -m_dParam[2], m_dParam[1]);
1664   sDescription += buf;
1665
1666-  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf   when (X >= %.4lf / %.4lf)\r\n",
1667+  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf   when (X >= %.4lf / %.4lf)\n",
1668     m_dParam[1], m_dParam[2], m_dParam[0],
1669     m_dParam[3],
1670     -m_dParam[2], m_dParam[1]);
1671@@ -849,22 +849,22 @@
1672   return;
1673
1674 case 0x0003:
1675-  sprintf(buf, "Y = %lf * X   when (X < %.4lf)\r\n",
1676+  sprintf(buf, "Y = %lf * X   when (X < %.4lf)\n",
1677     m_dParam[3], m_dParam[4]);
1678   sDescription += buf;
1679
1680-  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf   when (X >= %.4lf)\r\n",
1681+  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf   when (X >= %.4lf)\n",
1682     m_dParam[1], m_dParam[2], m_dParam[0],
1683     m_dParam[4]);
1684   sDescription += buf;
1685   return;
1686
1687 case 0x0004:
1688-  sprintf(buf, "Y = %lf * X + %.4lf  when (X < %.4lf)\r\n",
1689+  sprintf(buf, "Y = %lf * X + %.4lf  when (X < %.4lf)\n",
1690     m_dParam[3], m_dParam[6], m_dParam[4]);
1691   sDescription += buf;
1692
1693-  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf  when (X >= %.4lf)\r\n",
1694+  sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf  when (X >= %.4lf)\n",
1695     m_dParam[1], m_dParam[2], m_dParam[0],
1696     m_dParam[5], m_dParam[4]);
1697   sDescription += buf;
1698@@ -872,11 +872,11 @@
1699
1700 default:
1701   int i;
1702-  sprintf(buf, "Unknown Function with %d parameters:\r\n", m_nNumParam);
1703+  sprintf(buf, "Unknown Function with %d parameters:\n", m_nNumParam);
1704   sDescription += buf;
1705
1706   for (i=0; i<m_nNumParam; i++) {
1707-    sprintf(buf, "Param[%d] = %.4lf\r\n", i, m_dParam[i]);
1708+    sprintf(buf, "Param[%d] = %.4lf\n", i, m_dParam[i]);
1709     sDescription += buf;
1710   }
1711   }
1712@@ -901,10 +901,10 @@
1713 {
1714   icChar buf[128];
1715
1716-  sprintf(buf, "BEGIN_CURVE %s\r\n", szName);
1717+  sprintf(buf, "BEGIN_CURVE %s\n", szName);
1718   sDescription += buf;
1719   Describe(sDescription);
1720-  sDescription += "\r\n";
1721+  sDescription += "\n";
1722 }
1723
1724
1725@@ -1080,7 +1080,7 @@
1726   if (m_nReserved2!=0) {
1727     sReport += icValidateNonCompliantMsg;
1728     sReport += sSigName;
1729-    sReport += " - Reserved Value must be zero.\r\n";
1730+    sReport += " - Reserved Value must be zero.\n";
1731
1732     rv = icMaxStatus(rv, icValidateNonCompliant);
1733   }
1734@@ -1090,7 +1090,7 @@
1735   if (m_nNumParam!=1) {
1736     sReport += icValidateCriticalErrorMsg;
1737     sReport += sSigName;
1738-    sReport += " - Number of parameters inconsistent with function type.\r\n";
1739+    sReport += " - Number of parameters inconsistent with function type.\n";
1740     rv = icMaxStatus(rv, icValidateCriticalError);
1741   }
1742   break;
1743@@ -1099,7 +1099,7 @@
1744   if (m_nNumParam!=3) {
1745     sReport += icValidateCriticalErrorMsg;
1746     sReport += sSigName;
1747-    sReport += " - Number of parameters inconsistent with function type.\r\n";
1748+    sReport += " - Number of parameters inconsistent with function type.\n";
1749     rv = icMaxStatus(rv, icValidateCriticalError);
1750   }
1751   break;
1752@@ -1108,7 +1108,7 @@
1753   if (m_nNumParam!=4) {
1754     sReport += icValidateCriticalErrorMsg;
1755     sReport += sSigName;
1756-    sReport += " - Number of parameters inconsistent with function type.\r\n";
1757+    sReport += " - Number of parameters inconsistent with function type.\n";
1758     rv = icMaxStatus(rv, icValidateCriticalError);
1759   }
1760   break;
1761@@ -1117,7 +1117,7 @@
1762   if (m_nNumParam!=5) {
1763     sReport += icValidateCriticalErrorMsg;
1764     sReport += sSigName;
1765-    sReport += " - Number of parameters inconsistent with function type.\r\n";
1766+    sReport += " - Number of parameters inconsistent with function type.\n";
1767     rv = icMaxStatus(rv, icValidateCriticalError);
1768   }
1769   break;
1770@@ -1126,7 +1126,7 @@
1771   if (m_nNumParam!=7) {
1772     sReport += icValidateCriticalErrorMsg;
1773     sReport += sSigName;
1774-    sReport += " - Number of parameters inconsistent with function type.\r\n";
1775+    sReport += " - Number of parameters inconsistent with function type.\n";
1776     rv = icMaxStatus(rv, icValidateCriticalError);
1777   }
1778   break;
1779@@ -1134,7 +1134,7 @@
1780 default:
1781   sReport += icValidateCriticalErrorMsg;
1782   sReport += sSigName;
1783-  sReport += " - Unknown function type.\r\n";
1784+  sReport += " - Unknown function type.\n";
1785   rv = icMaxStatus(rv, icValidateCriticalError);
1786   }
1787
1788@@ -1144,7 +1144,7 @@
1789     if (lval>0.0 || uval<1.0) {
1790       sReport += icValidateWarningMsg;
1791       sReport += sSigName;
1792-      sReport += " - Curve cannot be accurately inverted.\r\n";
1793+      sReport += " - Curve cannot be accurately inverted.\n";
1794       rv = icMaxStatus(rv, icValidateWarning);
1795     }
1796   }
1797@@ -1229,32 +1229,32 @@
1798 {
1799   icChar buf[128];
1800
1801-  sprintf(buf, "BEGIN_MATRIX %s\r\n", szName);
1802+  sprintf(buf, "BEGIN_MATRIX %s\n", szName);
1803   sDescription += buf;
1804
1805   if (!m_bUseConstants) {
1806-    sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n",
1807+    sprintf(buf, "%8.4lf %8.4lf %8.4lf\n",
1808       m_e[0], m_e[1], m_e[2]);
1809     sDescription += buf;
1810-    sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n",
1811+    sprintf(buf, "%8.4lf %8.4lf %8.4lf\n",
1812       m_e[3], m_e[4], m_e[5]);
1813     sDescription += buf;
1814-    sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n",
1815+    sprintf(buf, "%8.4lf %8.4lf %8.4lf\n",
1816       m_e[6], m_e[7], m_e[8]);
1817     sDescription += buf;
1818   }
1819   else {
1820-    sprintf(buf, "%8.4lf %8.4lf %8.4lf  +  %8.4lf\r\n",
1821+    sprintf(buf, "%8.4lf %8.4lf %8.4lf  +  %8.4lf\n",
1822       m_e[0], m_e[1], m_e[2], m_e[9]);
1823     sDescription += buf;
1824-    sprintf(buf, "%8.4lf %8.4lf %8.4lf  +  %8.4lf\r\n",
1825+    sprintf(buf, "%8.4lf %8.4lf %8.4lf  +  %8.4lf\n",
1826       m_e[3], m_e[4], m_e[5], m_e[10]);
1827     sDescription += buf;
1828-    sprintf(buf, "%8.4lf %8.4lf %8.4lf  +  %8.4lf\r\n",
1829+    sprintf(buf, "%8.4lf %8.4lf %8.4lf  +  %8.4lf\n",
1830       m_e[6], m_e[7], m_e[8], m_e[11]);
1831     sDescription += buf;
1832   }
1833-  sDescription += "\r\n";
1834+  sDescription += "\n";
1835 }
1836
1837 /**
1838@@ -1351,7 +1351,7 @@
1839       if (m_e[0]!=1.0 || m_e[4]!=1.0 || m_e[9]!=1.0 || sum!=3.0) {
1840         sReport += icValidateNonCompliantMsg;
1841         sReport += sSigName;
1842-        sReport += " - Matrix must be identity.\r\n";
1843+        sReport += " - Matrix must be identity.\n";
1844         rv = icValidateNonCompliant;
1845       }
1846     }
1847@@ -1736,7 +1736,7 @@
1848
1849       ptr += sprintf(ptr, " %s", m_pVal);
1850     }
1851-    strcpy(ptr, "\r\n");
1852+    strcpy(ptr, "\n");
1853     sDescription += (const icChar*)m_pOutText;
1854
1855   }
1856@@ -1849,7 +1849,7 @@
1857   icChar szOutText[2048], szColor[40];
1858   int i, len;
1859
1860-  sprintf(szOutText, "BEGIN_LUT %s %d %d\r\n", szName, m_nInput, m_nOutput);
1861+  sprintf(szOutText, "BEGIN_LUT %s %d %d\n", szName, m_nInput, m_nOutput);
1862   sDescription += szOutText;
1863
1864   for (i=0; i<m_nInput; i++) {
1865@@ -1866,7 +1866,7 @@
1866     sDescription += szOutText;
1867   }
1868
1869-  sDescription += "\r\n";
1870+  sDescription += "\n";
1871
1872   len = 0;
1873   for (i=0; i<m_nInput; i++) {
1874@@ -1890,7 +1890,7 @@
1875
1876   Iterate(sDescription, 0, 0, bUseLegacy);
1877
1878-  sDescription += "\r\n";
1879+  sDescription += "\n";
1880 }
1881
1882
1883@@ -2668,7 +2668,7 @@
1884   if (m_nReserved2[0]!=0 || m_nReserved2[1]!=0 || m_nReserved2[2]!=0) {
1885     sReport += icValidateNonCompliantMsg;
1886     sReport += sSigName;
1887-    sReport += " - Reserved Value must be zero.\r\n";
1888+    sReport += " - Reserved Value must be zero.\n";
1889
1890     rv = icValidateNonCompliant;
1891   }
1892@@ -2679,7 +2679,7 @@
1893       if (m_GridPoints[i]<2) {
1894         sReport += icValidateCriticalErrorMsg;
1895         sReport += sSigName;
1896-        sprintf(temp, " - CLUT: At least 2 grid points should be present in dimension %u.\r\n",i );
1897+        sprintf(temp, " - CLUT: At least 2 grid points should be present in dimension %u.\n",i );
1898         sReport += temp;
1899         rv = icMaxStatus(rv, icValidateCriticalError);
1900       }
1901@@ -3102,7 +3102,7 @@
1902   if (!pProfile) {
1903     sReport += icValidateWarningMsg;
1904     sReport += sSigName;
1905-    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n";
1906+    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n";
1907     rv = icMaxStatus(rv, icValidateWarning);
1908     return rv;
1909   }
1910@@ -3118,7 +3118,7 @@
1911       if (m_nInput!=nInput) {
1912         sReport += icValidateCriticalErrorMsg;
1913         sReport += sSigName;
1914-        sReport += " - Incorrect number of input channels.\r\n";
1915+        sReport += " - Incorrect number of input channels.\n";
1916         rv = icMaxStatus(rv, icValidateCriticalError);
1917       }
1918
1919@@ -3126,7 +3126,7 @@
1920       if (m_nOutput!=nOutput) {
1921         sReport += icValidateCriticalErrorMsg;
1922         sReport += sSigName;
1923-        sReport += " - Incorrect number of output channels.\r\n";
1924+        sReport += " - Incorrect number of output channels.\n";
1925         rv = icMaxStatus(rv, icValidateCriticalError);
1926       }
1927
1928@@ -3140,7 +3140,7 @@
1929       if (m_nInput!=nInput) {
1930         sReport += icValidateCriticalErrorMsg;
1931         sReport += sSigName;
1932-        sReport += " - Incorrect number of input channels.\r\n";
1933+        sReport += " - Incorrect number of input channels.\n";
1934         rv = icMaxStatus(rv, icValidateCriticalError);
1935       }
1936
1937@@ -3148,7 +3148,7 @@
1938       if (m_nOutput!=nOutput) {
1939         sReport += icValidateCriticalErrorMsg;
1940         sReport += sSigName;
1941-        sReport += " - Incorrect number of output channels.\r\n";
1942+        sReport += " - Incorrect number of output channels.\n";
1943         rv = icMaxStatus(rv, icValidateCriticalError);
1944       }
1945
1946@@ -3160,7 +3160,7 @@
1947       if (m_nInput!=nInput) {
1948         sReport += icValidateCriticalErrorMsg;
1949         sReport += sSigName;
1950-        sReport += " - Incorrect number of input channels.\r\n";
1951+        sReport += " - Incorrect number of input channels.\n";
1952         rv = icMaxStatus(rv, icValidateCriticalError);
1953       }
1954
1955@@ -3168,7 +3168,7 @@
1956       if (m_nOutput!=nOutput) {
1957         sReport += icValidateCriticalErrorMsg;
1958         sReport += sSigName;
1959-        sReport += " - Incorrect number of output channels.\r\n";
1960+        sReport += " - Incorrect number of output channels.\n";
1961         rv = icMaxStatus(rv, icValidateCriticalError);
1962       }
1963
1964@@ -3186,7 +3186,7 @@
1965     if (!m_CLUT) {
1966       sReport += icValidateCriticalErrorMsg;
1967       sReport += sSigName;
1968-      sReport += " - CLUT must be present.\r\n";
1969+      sReport += " - CLUT must be present.\n";
1970       rv = icMaxStatus(rv, icValidateCriticalError);
1971     }
1972   }
1973@@ -3757,7 +3757,7 @@
1974           else {
1975             sReport += icValidateCriticalErrorMsg;
1976             sReport += sSigName;
1977-            sReport += " - Incorrect number of B-curves.\r\n";
1978+            sReport += " - Incorrect number of B-curves.\n";
1979             rv = icMaxStatus(rv, icValidateCriticalError);
1980           }
1981         }
1982@@ -3771,7 +3771,7 @@
1983           else {
1984             sReport += icValidateCriticalErrorMsg;
1985             sReport += sSigName;
1986-            sReport += " - Incorrect number of M-curves.\r\n";
1987+            sReport += " - Incorrect number of M-curves.\n";
1988             rv = icMaxStatus(rv, icValidateCriticalError);
1989           }
1990         }
1991@@ -3781,7 +3781,7 @@
1992         if (!m_CLUT) {
1993           sReport += icValidateNonCompliantMsg;
1994           sReport += sSigName;
1995-          sReport += " - CLUT must be present if using A-curves.\r\n";
1996+          sReport += " - CLUT must be present if using A-curves.\n";
1997
1998           rv = icMaxStatus(rv, icValidateNonCompliant);
1999         }
2000@@ -3793,7 +3793,7 @@
2001           else {
2002             sReport += icValidateCriticalErrorMsg;
2003             sReport += sSigName;
2004-            sReport += " - Incorrect number of A-curves.\r\n";
2005+            sReport += " - Incorrect number of A-curves.\n";
2006             rv = icMaxStatus(rv, icValidateCriticalError);
2007           }
2008         }
2009@@ -3885,7 +3885,7 @@
2010   if (!pProfile) {
2011     sReport += icValidateWarningMsg;
2012     sReport += sSigName;
2013-    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n";
2014+    sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n";
2015     rv = icMaxStatus(rv, icValidateCriticalError);
2016     return rv;
2017   }
2018@@ -3909,7 +3909,7 @@
2019       if (m_nOutput!=nOutput) {
2020         sReport += icValidateCriticalErrorMsg;
2021         sReport += sSigName;
2022-        sReport += " - Incorrect number of output channels.\r\n";
2023+        sReport += " - Incorrect number of output channels.\n";
2024         rv = icMaxStatus(rv, icValidateCriticalError);
2025       }
2026
2027@@ -3922,7 +3922,7 @@
2028           else {
2029             sReport += icValidateCriticalErrorMsg;
2030             sReport += sSigName;
2031-            sReport += " - Incorrect number of B-curves.\r\n";
2032+            sReport += " - Incorrect number of B-curves.\n";
2033             rv = icMaxStatus(rv, icValidateCriticalError);
2034           }
2035         }
2036@@ -3936,7 +3936,7 @@
2037           else {
2038             sReport += icValidateCriticalErrorMsg;
2039             sReport += sSigName;
2040-            sReport += " - Incorrect number of M-curves.\r\n";
2041+            sReport += " - Incorrect number of M-curves.\n";
2042             rv = icMaxStatus(rv, icValidateCriticalError);
2043           }
2044         }
2045@@ -3946,7 +3946,7 @@
2046         if (!m_CLUT) {
2047           sReport += icValidateNonCompliantMsg;
2048           sReport += sSigName;
2049-          sReport += " - CLUT must be present if using A-curves.\r\n";
2050+          sReport += " - CLUT must be present if using A-curves.\n";
2051
2052           rv = icMaxStatus(rv, icValidateNonCompliant);
2053         }
2054@@ -3958,7 +3958,7 @@
2055           else {
2056             sReport += icValidateCriticalErrorMsg;
2057             sReport += sSigName;
2058-            sReport += " - Incorrect number of A-curves.\r\n";
2059+            sReport += " - Incorrect number of A-curves.\n";
2060             rv = icMaxStatus(rv, icValidateCriticalError);
2061           }
2062         }
2063@@ -4349,7 +4349,7 @@
2064               if (pTagCurve->GetSize()==1) {
2065                 sReport += icValidateCriticalErrorMsg;
2066                 sReport += sSigName;
2067-                sReport += " - lut8Tags do not support single entry gamma curves.\r\n";
2068+                sReport += " - lut8Tags do not support single entry gamma curves.\n";
2069                 rv = icMaxStatus(rv, icValidateCriticalError);
2070               }
2071             }
2072@@ -4357,7 +4357,7 @@
2073           else {
2074             sReport += icValidateCriticalErrorMsg;
2075             sReport += sSigName;
2076-            sReport += " - Incorrect number of B-curves.\r\n";
2077+            sReport += " - Incorrect number of B-curves.\n";
2078             rv = icMaxStatus(rv, icValidateCriticalError);
2079           }
2080         }
2081@@ -4374,7 +4374,7 @@
2082         if (m_XYZMatrix[0]!=1.0 || m_XYZMatrix[4]!=1.0 || m_XYZMatrix[8]!=1.0 || sum!=3.0) {
2083           sReport += icValidateWarningMsg;
2084           sReport += sSigName;
2085-          sReport += " - Matrix must be identity.\r\n";
2086+          sReport += " - Matrix must be identity.\n";
2087           rv = icMaxStatus(rv, icValidateWarning);
2088         }
2089       }
2090@@ -4389,7 +4389,7 @@
2091               if (pTagCurve->GetSize()==1) {
2092                 sReport += icValidateCriticalErrorMsg;
2093                 sReport += sSigName;
2094-                sReport += " - lut8Tags do not support single entry gamma curves.\r\n";
2095+                sReport += " - lut8Tags do not support single entry gamma curves.\n";
2096                 rv = icMaxStatus(rv, icValidateCriticalError);
2097               }
2098             }
2099@@ -4397,7 +4397,7 @@
2100           else {
2101             sReport += icValidateCriticalErrorMsg;
2102             sReport += sSigName;
2103-            sReport += " - Incorrect number of A-curves.\r\n";
2104+            sReport += " - Incorrect number of A-curves.\n";
2105             rv = icMaxStatus(rv, icValidateCriticalError);
2106           }
2107         }
2108@@ -4770,7 +4770,7 @@
2109               if (pTagCurve->GetSize()==1) {
2110                 sReport += icValidateCriticalErrorMsg;
2111                 sReport += sSigName;
2112-                sReport += " - lut16Tags do not support single entry gamma curves.\r\n";
2113+                sReport += " - lut16Tags do not support single entry gamma curves.\n";
2114                 rv = icMaxStatus(rv, icValidateCriticalError);
2115               }
2116             }
2117@@ -4778,7 +4778,7 @@
2118           else {
2119             sReport += icValidateCriticalErrorMsg;
2120             sReport += sSigName;
2121-            sReport += " - Incorrect number of B-curves.\r\n";
2122+            sReport += " - Incorrect number of B-curves.\n";
2123             rv = icMaxStatus(rv, icValidateCriticalError);
2124           }
2125         }
2126@@ -4795,7 +4795,7 @@
2127         if (m_XYZMatrix[0]!=1.0 || m_XYZMatrix[4]!=1.0 || m_XYZMatrix[8]!=1.0 || sum!=3.0) {
2128           sReport += icValidateWarningMsg;
2129           sReport += sSigName;
2130-          sReport += " - Matrix must be identity.\r\n";
2131+          sReport += " - Matrix must be identity.\n";
2132           rv = icMaxStatus(rv, icValidateWarning);
2133         }
2134       }
2135@@ -4810,7 +4810,7 @@
2136               if (pTagCurve->GetSize()==1) {
2137                 sReport += icValidateCriticalErrorMsg;
2138                 sReport += sSigName;
2139-                sReport += " - lut16Tags do not support single entry gamma curves.\r\n";
2140+                sReport += " - lut16Tags do not support single entry gamma curves.\n";
2141                 rv = icMaxStatus(rv, icValidateCriticalError);
2142               }
2143             }
2144@@ -4818,7 +4818,7 @@
2145           else {
2146             sReport += icValidateCriticalErrorMsg;
2147             sReport += sSigName;
2148-            sReport += " - Incorrect number of A-curves.\r\n";
2149+            sReport += " - Incorrect number of A-curves.\n";
2150             rv = icMaxStatus(rv, icValidateCriticalError);
2151           }
2152         }
2153--- misc/SampleICC-1.6.11/IccProfLib/IccTagMPE.cpp  2015-09-26 10:15:16.000000000 -0500
2154+++ misc/build/SampleICC-1.6.11/IccProfLib/IccTagMPE.cpp    2026-10-27 01:48:25.182538640 -0500
2155@@ -288,7 +288,7 @@
2156           icGetSig(sigbuf, m_sig), m_nSize);
2157   sDescription += buf;
2158
2159-  sDescription += "\r\n\r\nData Follows:\r\n";
2160+  sDescription += "\n\nData Follows:\n";
2161
2162   icMemDump(sDescription, m_pData, m_nSize);
2163
2164@@ -434,7 +434,7 @@
2165   sReport += " - Contains unknown processing element type (";
2166   icGetSig(buf, m_sig, true);
2167   sReport += buf;
2168-  sReport += ").\r\n";
2169+  sReport += ").\n";
2170
2171   return icValidateCriticalError;
2172 }
2173@@ -462,7 +462,7 @@
2174     sReport += " - Element ";
2175     sSigName = Info.GetSigName(GetType());
2176     sReport += sSigName;
2177-    sReport += " - Reserved Value must be zero.\r\n";
2178+    sReport += " - Reserved Value must be zero.\n";
2179
2180     rv = icValidateNonCompliant;
2181   }
2182@@ -875,18 +875,18 @@
2183 {
2184   icChar buf[128];
2185
2186-  sprintf(buf, "BEGIN MULTI_PROCESS_ELEMENT_TAG %d %d\r\n", m_nInputChannels, m_nOutputChannels);
2187+  sprintf(buf, "BEGIN MULTI_PROCESS_ELEMENT_TAG %d %d\n", m_nInputChannels, m_nOutputChannels);
2188   sDescription += buf;
2189-  sDescription += "\r\n";
2190+  sDescription += "\n";
2191
2192   CIccMultiProcessElementList::iterator i;
2193   int j;
2194
2195   for (j=0, i=m_list->begin(); i!=m_list->end(); j++, i++) {
2196-    sprintf(buf, "PROCESS_ELEMENT #%d\r\n", j+1);
2197+    sprintf(buf, "PROCESS_ELEMENT #%d\n", j+1);
2198     sDescription += buf;
2199     i->ptr->Describe(sDescription);
2200-    sDescription += "\r\n";
2201+    sDescription += "\n";
2202   }
2203 }
2204
2205@@ -1384,13 +1384,13 @@
2206     if (m_nInputChannels != m_nOutputChannels) {
2207       sReport += icValidateCriticalErrorMsg;
2208       sReport += sSigName;
2209-      sReport += " No processing elements and input and output channels do not match!\r\n";
2210+      sReport += " No processing elements and input and output channels do not match!\n";
2211       return icValidateCriticalError;
2212     }
2213     else {
2214       sReport += icValidateWarningMsg;
2215       sReport += sSigName;
2216-      sReport += " No processing elements.\r\n";
2217+      sReport += " No processing elements.\n";
2218       return icValidateWarning;
2219     }
2220   }
2221@@ -1401,7 +1401,7 @@
2222   if (i->ptr->NumInputChannels() != m_nInputChannels) {
2223     sReport += icValidateCriticalErrorMsg;
2224     sReport += sSigName;
2225-    sReport += " Mis-matching number of input channels!\r\n";
2226+    sReport += " Mis-matching number of input channels!\n";
2227     return icValidateCriticalError;
2228   }
2229
2230@@ -1416,7 +1416,7 @@
2231         sReport += "->";
2232         sReport += i->ptr->GetClassName();
2233
2234-        sReport += " Mis-matching number of channels!\r\n";
2235+        sReport += " Mis-matching number of channels!\n";
2236         return icValidateCriticalError;
2237       }
2238     }
2239@@ -1428,7 +1428,7 @@
2240   if (last && last->NumOutputChannels() != m_nOutputChannels) {
2241     sReport += icValidateCriticalErrorMsg;
2242     sReport += sSigName;
2243-    sReport += " Mis-matching number of output channels!\r\n";
2244+    sReport += " Mis-matching number of output channels!\n";
2245     return icValidateCriticalError;
2246   }
2247
2248--- misc/SampleICC-1.6.11/IccProfLib/IccUtil.cpp    2015-10-05 19:22:30.000000000 -0500
2249+++ misc/build/SampleICC-1.6.11/IccProfLib/IccUtil.cpp  2026-10-27 01:48:25.223559104 -0500
2250@@ -73,7 +73,7 @@
2251 #include "IccTagFactory.h"
2252 #include "IccConvertUTF.h"
2253 #include <stdlib.h>
2254-#include <memory.h>
2255+#include <memory>
2256 #include <ctype.h>
2257 #include <math.h>
2258 #include <string.h>
2259@@ -742,11 +742,11 @@
2260 {
2261   icChar buf[128];
2262
2263-  sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", icFtoD(pMatrix[0]), icFtoD(pMatrix[1]), icFtoD(pMatrix[2]));
2264+  sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", icFtoD(pMatrix[0]), icFtoD(pMatrix[1]), icFtoD(pMatrix[2]));
2265   sDump += buf;
2266-  sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", icFtoD(pMatrix[3]), icFtoD(pMatrix[4]), icFtoD(pMatrix[5]));
2267+  sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", icFtoD(pMatrix[3]), icFtoD(pMatrix[4]), icFtoD(pMatrix[5]));
2268   sDump += buf;
2269-  sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", icFtoD(pMatrix[6]), icFtoD(pMatrix[7]), icFtoD(pMatrix[8]));
2270+  sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", icFtoD(pMatrix[6]), icFtoD(pMatrix[7]), icFtoD(pMatrix[8]));
2271   sDump += buf;
2272 }
2273
2274@@ -1592,19 +1592,19 @@
2275
2276   if (XYZ.X < 0) {
2277     sReport += icValidateNonCompliantMsg;
2278-    sReport += " - XYZNumber: Negative X value!\r\n";
2279+    sReport += " - XYZNumber: Negative X value!\n";
2280     rv = icValidateNonCompliant;
2281   }
2282
2283   if (XYZ.Y < 0) {
2284     sReport += icValidateNonCompliantMsg;
2285-    sReport += " - XYZNumber: Negative Y value!\r\n";
2286+    sReport += " - XYZNumber: Negative Y value!\n";
2287     rv = icMaxStatus(rv, icValidateNonCompliant);
2288   }
2289
2290   if (XYZ.Z < 0) {
2291     sReport += icValidateNonCompliantMsg;
2292-    sReport += " - XYZNumber: Negative Z value!\r\n";
2293+    sReport += " - XYZNumber: Negative Z value!\n";
2294     rv = icMaxStatus(rv, icValidateNonCompliant);
2295   }
2296
2297@@ -1624,7 +1624,7 @@
2298   icChar buf[128];
2299   if (dateTime.year<1992) {
2300     sReport += icValidateWarningMsg;
2301-    sprintf(buf," - %u: Invalid year!\r\n",dateTime.year);
2302+    sprintf(buf," - %u: Invalid year!\n",dateTime.year);
2303     sReport += buf;
2304     rv = icValidateWarning;
2305   }
2306@@ -1633,7 +1633,7 @@
2307   if (newtime->tm_mon==11 && newtime->tm_mday==31) {
2308     if (dateTime.year>(year+1)) {
2309       sReport += icValidateWarningMsg;
2310-      sprintf(buf," - %u: Invalid year!\r\n",dateTime.year);
2311+      sprintf(buf," - %u: Invalid year!\n",dateTime.year);
2312       sReport += buf;
2313       rv = icMaxStatus(rv, icValidateWarning);
2314     }
2315@@ -1641,7 +1641,7 @@
2316   else {
2317     if (dateTime.year>year) {
2318       sReport += icValidateWarningMsg;
2319-      sprintf(buf," - %u: Invalid year!\r\n",dateTime.year);
2320+      sprintf(buf," - %u: Invalid year!\n",dateTime.year);
2321       sReport += buf;
2322       rv = icMaxStatus(rv, icValidateWarning);
2323     }
2324@@ -1649,14 +1649,14 @@
2325
2326   if (dateTime.month<1 || dateTime.month>12) {
2327     sReport += icValidateWarningMsg;
2328-    sprintf(buf," - %u: Invalid month!\r\n",dateTime.month);
2329+    sprintf(buf," - %u: Invalid month!\n",dateTime.month);
2330     sReport += buf;
2331     rv = icMaxStatus(rv, icValidateWarning);
2332   }
2333
2334   if (dateTime.day<1 || dateTime.day>31) {
2335     sReport += icValidateWarningMsg;
2336-    sprintf(buf," - %u: Invalid day!\r\n",dateTime.day);
2337+    sprintf(buf," - %u: Invalid day!\n",dateTime.day);
2338     sReport += buf;
2339     rv = icMaxStatus(rv, icValidateWarning);
2340   }
2341@@ -1664,7 +1664,7 @@
2342   if (dateTime.month==2) {
2343     if (dateTime.day>29) {
2344       sReport += icValidateWarningMsg;
2345-      sprintf(buf," - %u: Invalid day for February!\r\n",dateTime.day);
2346+      sprintf(buf," - %u: Invalid day for February!\n",dateTime.day);
2347       sReport += buf;
2348       rv = icMaxStatus(rv, icValidateWarning);
2349     }
2350@@ -1672,7 +1672,7 @@
2351     if (dateTime.day==29) {
2352       if ((dateTime.year%4)!=0) {
2353         sReport += icValidateWarningMsg;
2354-        sprintf(buf," - %u: Invalid day for February, year is not a leap year(%u)!\r\n",dateTime.day, dateTime.year);
2355+        sprintf(buf," - %u: Invalid day for February, year is not a leap year(%u)!\n",dateTime.day, dateTime.year);
2356         sReport += buf;
2357         rv = icMaxStatus(rv, icValidateWarning);
2358       }
2359@@ -1681,21 +1681,21 @@
2360
2361   if (dateTime.hours>23) {
2362     sReport += icValidateWarningMsg;
2363-    sprintf(buf," - %u: Invalid hour!\r\n",dateTime.hours);
2364+    sprintf(buf," - %u: Invalid hour!\n",dateTime.hours);
2365     sReport += buf;
2366     rv = icMaxStatus(rv, icValidateWarning);
2367   }
2368
2369   if (dateTime.minutes>59) {
2370     sReport += icValidateWarningMsg;
2371-    sprintf(buf," - %u: Invalid minutes!\r\n",dateTime.minutes);
2372+    sprintf(buf," - %u: Invalid minutes!\n",dateTime.minutes);
2373     sReport += buf;
2374     rv = icMaxStatus(rv, icValidateWarning);
2375   }
2376
2377   if (dateTime.seconds>59) {
2378     sReport += icValidateWarningMsg;
2379-    sprintf(buf," - %u: Invalid seconds!\r\n",dateTime.hours);
2380+    sprintf(buf," - %u: Invalid seconds!\n",dateTime.hours);
2381     sReport += buf;
2382     rv = icMaxStatus(rv, icValidateWarning);
2383   }
2384@@ -1919,5 +1919,5 @@
2385 #ifdef ICC_WCHAR_32BIT
2386   size_t sizeSrc = buf.size();
2387-  wchar_t *szStr = buf.c_str();
2388+  const wchar_t *szStr = buf.c_str();
2389
2390   if (sizeSrc) {
2391@@ -1973,4 +1973,7 @@
2392   icUInt16Number *srcStr = m_str;
2393-  UTF32 *dstStr = buf.c_str();
2394-
2395-  icConvertUTF16toUTF32((UTF16**)&srcStr, &strStr[m_len], &dstStr, &dstStr[buf.size()], lenientConversion);
2396+
2397+  if (buf.size()) {
2398+    UTF32 *dstStr = (UTF32*)&buf[0];
2399+
2400+    icConvertUTF16toUTF32((const UTF16**)&srcStr, &srcStr[m_len], &dstStr, &dstStr[buf.size()], lenientConversion);
2401+  }
2402--- misc/SampleICC-1.6.11/Contrib/ICC_utils/Vetters.cpp 2010-08-24 15:50:00.000000000 -0400
2403+++ misc/build/SampleICC-1.6.11/Contrib/ICC_utils/Vetters.cpp   2026-10-29 18:15:00.000000000 -0400
2404@@ -69,5 +69,5 @@
2405 //////////////////////////////////////////////////////////////////////
2406
2407-#include "Vetters.h"
2408+#include "vetters.h"
2409
2410 #include <sstream>
2411diff --git misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile/create_CLUT_profile.cpp misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile/create_CLUT_profile.cpp
2412index 3f77724..6ee59cc 100644
2413--- misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile/create_CLUT_profile.cpp
2414+++ misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile/create_CLUT_profile.cpp
2415@@ -81,7 +81,7 @@ using namespace std;
2416
2417 #include <getopt.h> // for getopt_long
2418 #include "ICC_tool_exception.h"
2419-#include "Vetters.h"
2420+#include "vetters.h"
2421
2422 // At the moment this is a hack; later we will figure out how to set HAS_GETOPT_LONG
2423 // in the configure script.  Feel free to extend this to support your favorite platform.
2424diff --git misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_display_profile/create_display_profile.cpp misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_display_profile/create_display_profile.cpp
2425index ecc9260..b737445 100644
2426--- misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_display_profile/create_display_profile.cpp
2427+++ misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_display_profile/create_display_profile.cpp
2428@@ -77,7 +77,7 @@ using namespace std;
2429 #include "IccUtil.h"
2430 #include "IccProfile.h"
2431
2432-#include "Vetters.h"
2433+#include "vetters.h"
2434 #include "CAT.h"
2435 #include "CLUT.h"
2436
2437diff --git misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/create_probe/create_probe.cpp misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/create_probe/create_probe.cpp
2438index d16345d..99e021d 100644
2439--- misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/create_probe/create_probe.cpp
2440+++ misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/create_probe/create_probe.cpp
2441@@ -94,7 +94,7 @@
2442
2443 #include <iostream>
2444 using namespace std;
2445-#include "Vetters.h"
2446+#include "vetters.h"
2447
2448 #ifdef __APPLE__
2449
2450diff --git misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/extract_probe_data/extract_probe_data.cpp misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/extract_probe_data/extract_probe_data.cpp
2451index b77a75b..ff058e0 100644
2452--- misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/extract_probe_data/extract_probe_data.cpp
2453+++ misc/build/SampleICC-1.6.11/Contrib/Mac_OS_X/extract_probe_data/extract_probe_data.cpp
2454@@ -82,7 +82,7 @@
2455 #include <iostream>
2456 using namespace std;
2457
2458-#include "Vetters.h"
2459+#include "vetters.h"
2460
2461 #ifdef __APPLE__
2462
2463diff --git misc/build/SampleICC-1.6.11/Contrib/examples/RSR/create_pretransform_curve.cpp misc/build/SampleICC-1.6.11/Contrib/examples/RSR/create_pretransform_curve.cpp
2464index c48b644..5ca89ab 100644
2465--- misc/build/SampleICC-1.6.11/Contrib/examples/RSR/create_pretransform_curve.cpp
2466+++ misc/build/SampleICC-1.6.11/Contrib/examples/RSR/create_pretransform_curve.cpp
2467@@ -79,7 +79,7 @@
2468 #include <cmath>
2469 using namespace std;
2470
2471-#include "Vetters.h"
2472+#include "vetters.h"
2473
2474 void
2475 usage(ostream& s, const char* const my_name)
2476diff --git misc/build/SampleICC-1.6.11/Contrib/tests/generate_device_codes/generate_device_codes.cpp misc/build/SampleICC-1.6.11/Contrib/tests/generate_device_codes/generate_device_codes.cpp
2477index d8464d5..e3639a4 100644
2478--- misc/build/SampleICC-1.6.11/Contrib/tests/generate_device_codes/generate_device_codes.cpp
2479+++ misc/build/SampleICC-1.6.11/Contrib/tests/generate_device_codes/generate_device_codes.cpp
2480@@ -74,7 +74,7 @@
2481 #include <limits>
2482 using namespace std;
2483
2484-#include "Vetters.h"
2485+#include "vetters.h"
2486
2487 void
2488 usage(ostream& s, const char* const myName)
2489diff --git misc/build/SampleICC-1.6.11/Contrib/tests/reconstruct_measurements/reconstruct_measurements.cpp misc/build/SampleICC-1.6.11/Contrib/tests/reconstruct_measurements/reconstruct_measurements.cpp
2490index aeebad6..0660695 100644
2491--- misc/build/SampleICC-1.6.11/Contrib/tests/reconstruct_measurements/reconstruct_measurements.cpp
2492+++ misc/build/SampleICC-1.6.11/Contrib/tests/reconstruct_measurements/reconstruct_measurements.cpp
2493@@ -76,7 +76,7 @@ using namespace std;
2494
2495 #include "ICC_tool_exception.h"
2496 #include "Measurement_extractor.h"
2497-#include "Vetters.h"
2498+#include "vetters.h"
2499
2500 void
2501 processMeasurements(istream& in_s,
2502diff --git misc/build/SampleICC-1.6.11/Contrib/tests/round_trip_PCS_LAB/round_trip_PCS_LAB.cpp misc/build/SampleICC-1.6.11/Contrib/tests/round_trip_PCS_LAB/round_trip_PCS_LAB.cpp
2503index eef8726..4164338 100644
2504--- misc/build/SampleICC-1.6.11/Contrib/tests/round_trip_PCS_LAB/round_trip_PCS_LAB.cpp
2505+++ misc/build/SampleICC-1.6.11/Contrib/tests/round_trip_PCS_LAB/round_trip_PCS_LAB.cpp
2506@@ -76,7 +76,7 @@ using namespace std;
2507
2508 #include "IccUtil.h"
2509 #include "ICC_tool_exception.h"
2510-#include "Vetters.h"
2511+#include "vetters.h"
2512
2513 icFloatNumber
2514 deltaE(icFloatNumber* first_LAB, icFloatNumber* second_LAB)
2515diff --git misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile_from_probe/create_CLUT_profile_from_probe.cpp misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile_from_probe/create_CLUT_profile_from_probe.cpp
2516index 843323d..615c62b 100644
2517--- misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile_from_probe/create_CLUT_profile_from_probe.cpp
2518+++ misc/build/SampleICC-1.6.11/Contrib/CmdLine/create_CLUT_profile_from_probe/create_CLUT_profile_from_probe.cpp
2519@@ -87,7 +87,7 @@ using namespace std;
2520
2521 #include "ICC_tool_exception.h"
2522 #include "Stubs.h"
2523-#include "Vetters.h"
2524+#include "vetters.h"
2525
2526 #include "IccDefs.h"
2527 #include "IccProfile.h"
2528diff --git misc/build/SampleICC-1.6.11/Contrib/tests/flatten_AToB_tag/flatten_AToB_tag.cpp misc/build/SampleICC-1.6.11/Contrib/tests/flatten_AToB_tag/flatten_AToB_tag.cpp
2529index ef0efe1..c7b058a 100644
2530--- misc/build/SampleICC-1.6.11/Contrib/tests/flatten_AToB_tag/flatten_AToB_tag.cpp
2531+++ misc/build/SampleICC-1.6.11/Contrib/tests/flatten_AToB_tag/flatten_AToB_tag.cpp
2532@@ -87,7 +87,7 @@ using namespace std;
2533 #include "IccCmm.h"
2534 // CIccCmm
2535
2536-#include "Vetters.h"
2537+#include "vetters.h"
2538
2539 typedef vector<icFloatNumber> ResultTuple;
2540 typedef vector<ResultTuple> ResultTuples;
2541