Sponsored Content
Full Discussion: low-order seven bits
Top Forums UNIX for Advanced & Expert Users low-order seven bits Post 56058 by solea on Monday 27th of September 2004 05:10:18 AM
Old 09-27-2004
Question low-order seven bits

Hi and thx in advance Smilie

I have to transfert files between a UNIX server and a Network Appliance Filer and i have problem with accent characters on filename.

On unix side accent are interpreted as follow
ls -l unix* | cat -v
-rwxr--r-- 1 a067842 admDE 0 Sep 24 16:33 unix_M-^J.txt
and are well interpreted using samba (i.e. a windows workstation show the correct character).

If i transfert the file (using rsync with archive mode) on the filer and access it using NFS I see the same filename
ls -l unix* | cat -v
-rwxr--r-- 1 root other 0 Sep 24 16:38 unix_M-^J.txt

but It's not well interpreted by DOT (Data OnTap which is the Netapp filer Operating System) when accessed from a windows workstation (i.e. a windows workstation doesn't show the correct character)

If I create the file with the wanted filename from windows workstation on the filer it appears accessed from NFS like:
ls unix*.txt | cat -v
unix_M-i.txt

So I understand that M-i and M-^J shown by the cat -v command are differents Smilie , I will have to scan all my data and replace one character by the oher one to make the migration a success.
Problem how can I do this??? The cat man page indicates that characters starting with a "M-" string are non printable and correspond to the "low-order seven bits", is there a way to manipulate this ASCII characters using sed or something else?
Sorry for the long post, hope it's roughly clear (Huummhhh, not sure).
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing 24 bits to 8 bits display

Hello all, I was wondering if anyone can tell me how to change 24 bits depth display to 8 bits depth display for Sun Ultra1, running Solaris 8? THANKS in advance. I think that the command is ffbconfig, but it has nothing about depth. (4 Replies)
Discussion started by: larry
4 Replies

2. UNIX for Dummies Questions & Answers

low RAM

Hy, I've an 486 dx2 laptop an I want to run unix on it, the problem is it has only 4 megabytes of ram, so my question is; does anybody know an unix based OS which runs with only 4 mb? thanx (7 Replies)
Discussion started by: counTnegaTive
7 Replies

3. AIX

Pend Low Mbuffs

Help.. my RS600 7043-140 keeps on hanging everyday. This is the output of "errpt -a": LABEL: PEND_LOW_MBUFS IDENTIFIER: E9B4EB4B Date/Time: Tue Jul 29 12:16:02 Sequence Number: 1183 Machine Id: 006066844C00 Node Id: mgmtoracle Class: ... (1 Reply)
Discussion started by: bright_genius
1 Replies

4. AIX

How to convert a partition usin 64 bits kernel to 32 bits kernel?

Hello there: I know that exist a procedure to convert an OS using 32bits kernel to 64 bits kernel. But, exist a procedure to convert an OS using 64bits to 32 bits kernel? Please help me. Regards. (2 Replies)
Discussion started by: GEIER
2 Replies

5. UNIX for Dummies Questions & Answers

32 bits procesaor with 64 bits Solaris

people i have a problem i have a 32 bits sparc processor, and solaris 64 bits processor, i install a oracle data base 64 bits, but my oracle will not run because my processor is from 32 bits this is ok??, i know if i have x86 i cannot install a 64 bits operatin system in a 32 bits processor. ... (0 Replies)
Discussion started by: enkei17
0 Replies

6. AIX

High Runqueue (R) LOW CPU LOW I/O Low Network Low memory usage

Hello All I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) . The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Discussion started by: IL-Malti
9 Replies

7. What is on Your Mind?

Place Bits & Win Bits!!! - 17th Annual Satellite Awards

Ten movies have been nominated as best motion picture by the International Press Academy, presentation of the 2012 Satellite Awards will be held on 16th December at Los Angeles, CA. Place your bits here on one of the below nominated movie of your choice:- Argo ... (0 Replies)
Discussion started by: Yoda
0 Replies
fold_string_w(3)					     Library Functions Manual						  fold_string_w(3)

NAME
fold_string_w - Maps one wide-character string to another, performing the specified Unicode character transformation LIBRARY
UCS4 Library (libucs4) SYNOPSIS
#include <ucs4.h> int fold_string_w( unsigned long map_flags, const wchar_t *src_wcs, int src_cnt, wchar_t *dest_wcs, int dest_cnt ); PARAMETERS
Specifies one or more of the following flags: Folds compatibility zone characters into standard Unicode equivalents. For information on compatibility zone characters, see the DESCRIPTION section. Maps all digits to Unicode ASCII 0 to 9. Maps accented characters to precom- posed characters. In this transformation, the multiple accent and base character values are combined into a single character value. The MAP_PRECOMPOSED flag cannot be combined with the MAP_COMPOSITE flag. Maps accented characters to composite characters. In this transformation, the single value for an accented character is decomposed into multiple values for the base and accented characters. The MAP_COMPOSITE flag cannot be combined with the MAP_PRECOMPOSED flag. Points to a source buffer containing the wide-character string whose characters are to be transformed. Specifies the size (in number of wide charac- ters) of the source buffer. If the wide-character string in the source buffer is null-terminated, applications can specify -1 as the src_cnt value and the function calculates the length of the string automatically. Points to a destination buffer to store the transformed wide-character string. Specifies the size (in number of wide characters) of the destination buffer. DESCRIPTION
The fold_string_w() function maps one wide-character string to another and performs the specified Unicode character transformation. The function then stores the transformed wide-character string in the destination buffer and returns the number of wide characters stored. The supported operations include the following: Transform separate values for accent and base characters into a single value for an accented character Transform a single value for an accented character into separate values for accent and base characters Transform all digit values to Unicode ASCII 0 to 9. for digits Transform all compatibility zone characters into standard Unicode equivalents The compatibility zone in Unicode consists of characters that are in the range 0xF900 to 0xFFEF (values assigned to characters from other encoding standards) but are variants of characters that already exist in Unicode. The compatibility zone is used to support round-trip mapping of characters to and from these standards. Applications use the MAP_FOLDZONE flag to avoid supporting compati- bility zone characters that are duplicates of those in Unicode. The src_cnt value determines when the function stops processing characters. If src_cnt is -1, then character processing stops when a null is encountered. In this case, the null terminator is included in the destination string and also included in the return count. Otherwise, nulls are treated as other characters and may be embedded in the source string. In this case, the return count and destination string may or may not include a null. The fold_string_w() function fails if dest_wcs is too small to contain the transformed string. The application can avoid this failure in one of the following ways: Allocate a buffer size large enough to store transformed strings resulting from any call to fold_string_w() Call fold_string_w() twice for each string transformation, once to calculate the length of the destination string and again to store the trans- formed string If an application calls fold_string_w() with dest_cnt set to 0 (zero), the function calculates and returns the number of characters required for dest_wcs but does not store the transformation results in dest_wcs. The application can then specify the return value from the first call as the value for dest_wcs on a second call, on which the transformation results are stored. The src_wcs and dest_wcs parameters cannot point to the same location. If they do, the function fails and sets errno to EINVAL. RETURN VALUES
On success, the fold_string_w() function returns the number of characters written to the destination wide-character string. On failure, the function returns 0 (zero) and sets errno to indicate the reason for failure. ERRORS
The fold_string_w() function sets errno to the following values for the specified conditions: Insufficient memory is available for the specified operations. A possible cause of this condition is a src_cnt value of -1 when the source string is not null terminated. A param- eter value is invalid; for example, the source and destination strings point to the same location. This error can also occur if both the MAP_PRECOMPOSED and MAP_COMPOSITE flags are specified on the same call. The destination buffer is not large enough to store the trans- formed wide-character string. delim off fold_string_w(3)
All times are GMT -4. The time now is 05:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy