In UTF-8 é should evaluate to (U+117).
There should be a command called localedef.
There also should be a Spanish UTF-8 locale, you are calling it correctly.
Please post the output of this, which lists classes
If you get correct output, then character classes exist correctly in your locale. You may need to set the environment variable POSIXLY_CORRECT on Linux.
Here's the output shown in Debian:
I don't see any equivalence classes, just character classes. So it means there are none defined in the locale, right?
Hi, I'm trying to write a bash script to find some files. However it seems that the find command is not behaving the same way when the script is executed as it does when executed from the command line:
Script extract:
#!/bin/bash
...
NEW="/usr/bin/find current/applications/ -name '*jar'... (3 Replies)
I am thankful for this site and for the many links provided. I have been going through one of the tutorials, but as I try some things, they don't seem to work.
I am wondering if there is something I need first before being able to use a tutorial (like version number (HP-UX) or how I am getting... (1 Reply)
I use FreeBSD,and use signal,like follows:
signal(SIGHUP,sig_hup);
signal(SIGIO,sig_io);
when I run call following code,it can run,but I find a puzzled question,it should print some information,such as printf("execute main()") will print execute main(),but in fact,printf fuction print... (2 Replies)
Hi all.
I have a script as below:
cutmth=`TZ=CST+2160 date +%b`
export cutmth
echo $cutmth >> date.log
sed -n "/$cutmth/$p" alert_sbdev1.log > alert_summ.log
My purpose is to run through the alert_sbdev1.log and find the 1st occurence of 'Jan' and send everything after that line to... (4 Replies)
Following code is detecting solaris daytime,when I run it,I can't get any result,code is follows:
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFFSIZE 150
int main(){
... (2 Replies)
I use Solaris 10, I use following code:
#include <signal.h>
int main(void){
printf("----------testing-----------");
if(signal(SIGUSR1,sig_usr)==SIG_ERR)
err_sys("can't catch SIGUSR1");
for(;;)
pause();
sig_user(int signo){
.....
}
when I run above code,it print nothing... (3 Replies)
Hello all!
I have problem in hp-ux 11.11 in awk
I want to grep sar -d 2 1 only 3 column, but have error in awk in hp-ux 11.11
Example:
#echo 123 234 | awk '{print $2}'
123 234
The situattions in commands bdf | awk {print $5}' some...
In hp-ux 11.31 - OK!
How resolve problem (15 Replies)
Hi,
I installed solaris 10 x86 on my local system. it was working fine. today when i started the system, it started up without any problem. when i tried to open the terminal it didn't open any terminal.
Plz help me (0 Replies)
Discussion started by: malikshahid85
0 Replies
LEARN ABOUT OSF1
wctype
wctype(3) Library Functions Manual wctype(3)NAME
wctype - Gets a handle to classify wide characters
LIBRARY
Standard C Library (libc)
SYNOPSIS
#include <wctype.h>
wctype_t wctype( const char *property);
The following prototype for wctype() does not conform to current industry standards and is supported only for backward compatibility:
#include <wchar.h>
wctype_t wctype(
char *property);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
wctype(): XSH5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Points to a string that identifies a character class, or property.
DESCRIPTION
The wctype() function obtains a handle for valid property names for wide characters, as defined in the current locale. The handle can then
be used as the wc_prop parameter in a subsequent call to the iswctype() function to check whether a wide character has this property. (See
the iswctype(3) reference page.) Values returned by the wctype() function are valid until the setlocale() function modifies the value of
the LC_CTYPE environment variable. The property parameter can have a value equal to one of the basic character classes or to any other
character class that is defined for a locale. The characters included in each class are specified in the locale definition file (see the
localedef(1) and locale(4) reference pages for more information). The basic character classes are as follows: A combination of the classes
alpha and digit. Alphabetic (letter) characters. This class automatically includes characters in the upper and lower classes. Blank char-
acters, such as the space or tab character. Control characters. This class does not include characters in the alpha or print class.
Numeric digit characters. This class includes the following characters:
0 1 2 3 4 5 6 7 8 9 Graphic characters for printing. This class does not include characters in the space or cntrl class but includes
all characters in the alpha, digit, and punct classes. Lowercase characters. This class does not include characters in the cntrl,
digit, punct, or space class. At a minimum, the lower class includes the 26 lowercase US-ASCII characters. These are:
a b c d e f g h i j k l m n o p q r s t u v w x y z Print characters. This class includes characters in the graph and space classes
but does not include characters in the cntrl class. Punctuation characters. This class does not include characters in the space,
alpha, digit, or cntrl class. Space characters. At a minimum, this class includes the space, form-feed, newline, carriage-return,
tab, and vertical-tab characters. Uppercase characters. At a minimum, this class includes the 26 uppercase US ASCII characters.
These are:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Hexadecimal characters. This class includes the following characters:
0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f
For the list of supplemental properties that can be defined in Unicode locales, see the locale(4) reference page. On Tru64 UNIX systems,
Unicode character properties are defined only in locales whose names end in .UTF-8.
RETURN VALUES
On successful completion, the wctype() function returns a value of type wctype_t, which is a handle for valid property names in the current
locale. If the property parameter specifies a character class that is not valid for the current locale, the function returns the value 0
cast to wctype_t.
RELATED INFORMATION
Commands: localedef(1)
Files: locale(4)
Functions: ctype(3), iswctype(3), setlocale(3), towupper(3), wctrans(3) delim off
wctype(3)