HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Dynamically loaded locales
Operating System - HP-UX
1837168
Members
3270
Online
110113
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 01:59 AM
10-01-2001 01:59 AM
Dynamically loaded locales
Hi,
How do I find out which shared objects (loacles) are loaded/used when I call e.g. isspace function in C my program.
I have a problem with scandinavian characters and isspace function.
I have two servers HP-UX ux04 B.10.20 A 9000/800 and HP-UX ux05 B.11.00 A 9000/800.
In ux04 isspace works fine but ux05 doesn't seem to undestand scandinavian characters. locale command in both servers give a same result.
$ locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
$
Thanks!
How do I find out which shared objects (loacles) are loaded/used when I call e.g. isspace function in C my program.
I have a problem with scandinavian characters and isspace function.
I have two servers HP-UX ux04 B.10.20 A 9000/800 and HP-UX ux05 B.11.00 A 9000/800.
In ux04 isspace works fine but ux05 doesn't seem to undestand scandinavian characters. locale command in both servers give a same result.
$ locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
$
Thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 02:15 AM
10-01-2001 02:15 AM
Re: Dynamically loaded locales
fyi :
isspace is only supported for single-byte character code sets ...would Scandinavian locales/ langs fall outside of this ?
The implementation for the of range values
passed to isspace et al changed between 10.x and 11.0. As of 11.0 if values are out of range the return value may not be consistent.
Also note from the man page that only the integers -1 though 255 are supported by isspace
(except isascii the other functions mentioned on the same man page have the same
constraints). If you passes a number less than -1 or greater than 255 the results are undefined.... could this be relevant ?
You referred to problems/differences between 10.20 & 11.00 .... could you elaborate if the above does not help ?
isspace is only supported for single-byte character code sets ...would Scandinavian locales/ langs fall outside of this ?
The implementation for the of range values
passed to isspace et al changed between 10.x and 11.0. As of 11.0 if values are out of range the return value may not be consistent.
Also note from the man page that only the integers -1 though 255 are supported by isspace
(except isascii the other functions mentioned on the same man page have the same
constraints). If you passes a number less than -1 or greater than 255 the results are undefined.... could this be relevant ?
You referred to problems/differences between 10.20 & 11.00 .... could you elaborate if the above does not help ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 06:14 AM
10-01-2001 06:14 AM
Re: Dynamically loaded locales
In 11.00 isspace function works fine if I first call setlocale(with LC_CTYPE and fi_FI.iso885915@euro)??? In 10.20 doesn't need to do that. I tested this behaviour in several servers.
Yes my characters (e.q. '?') are out of range.
If I change locales should isspace function works fine with e.q. '?'?
How it work in 10.20?
Yes my characters (e.q. '?') are out of range.
If I change locales should isspace function works fine with e.q. '?'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 02:07 AM
10-02-2001 02:07 AM
Re: Dynamically loaded locales
I think problem occurs when I give to isspace function a char value greater than 127.
Here is my test program.
#include
#include
#include
main(int argc, char *argv[])
{
char mm = '?';
if (isspace(mm))
printf("'%c' (<%02X>) '%d' = true\n", mm, mm, mm);
else
printf("'%c' (<%02X>) '%d' = false\n", mm, mm, mm);
return 0;
}
when I execute this result is:
'?' () '-28' = true
if variable mm is unsigned char result is:
'?' () '228' = false
Would PHCO_19090 fix this problem?
Here is my test program.
#include
#include
#include
main(int argc, char *argv[])
{
char mm = '?';
if (isspace(mm))
printf("'%c' (<%02X>) '%d' = true\n", mm, mm, mm);
else
printf("'%c' (<%02X>) '%d' = false\n", mm, mm, mm);
return 0;
}
when I execute this result is:
'?' (
if variable mm is unsigned char result is:
'?' (
Would PHCO_19090 fix this problem?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP