| thread.c (509a48ff) | thread.c (b1bc2d97) |
|---|---|
| 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 989 unchanged lines hidden (view full) --- 998 defaultEncoding = atoi(pszEncoding); 999 else 1000 defaultEncoding = osl_getTextEncodingFromLocale(NULL); 1001 1002 OSL_ASSERT(defaultEncoding != RTL_TEXTENCODING_DONTKNOW); 1003 1004 /* 1005 Tools string functions call abort() on an unknown encoding so ASCII | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 989 unchanged lines hidden (view full) --- 998 defaultEncoding = atoi(pszEncoding); 999 else 1000 defaultEncoding = osl_getTextEncodingFromLocale(NULL); 1001 1002 OSL_ASSERT(defaultEncoding != RTL_TEXTENCODING_DONTKNOW); 1003 1004 /* 1005 Tools string functions call abort() on an unknown encoding so ASCII |
| 1006 is a meaningfull fallback regardless wether the assertion makes sense. | 1006 is a meaningful fallback regardless wether the assertion makes sense. |
| 1007 */ 1008 1009 if ( RTL_TEXTENCODING_DONTKNOW == defaultEncoding ) 1010 defaultEncoding = RTL_TEXTENCODING_ASCII_US; 1011 1012 g_thread.m_textencoding.m_default = defaultEncoding; 1013} 1014 --- 33 unchanged lines hidden --- | 1007 */ 1008 1009 if ( RTL_TEXTENCODING_DONTKNOW == defaultEncoding ) 1010 defaultEncoding = RTL_TEXTENCODING_ASCII_US; 1011 1012 g_thread.m_textencoding.m_default = defaultEncoding; 1013} 1014 --- 33 unchanged lines hidden --- |