[Insight-developers] GDCM Compiler Warning: character set encoding
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Aug 6 08:59:40 EDT 2007
Hi Hans,
[Just got back from vacation]
I have been working quite a lot on this issue. Unfortunately I do
not understand how this should be handle. As far as I understand this
letter 'µ' can be encoded either as one char (value > 127 on ISO-xxx,
typically on european keyboard), or on UTF (with two bytes). What does
your locale says on your computer ?
If we cannot find a solution, I'll use what most other toolkit are
using, replace 'µ' with ASCII only character ('Micro', 'u'...).
Any guru on character set here ?
-Mathieu
On 8/2/07, Hans Johnson <hans-johnson at uiowa.edu> wrote:
>
> Mathieu,
>
> I am getting a compiler warning in gdcm:
>
> /scratch/hjohnson/src/brains2/iplFreeware/icc/FAST_64_64/Insight/Utilities/gdcm/src/gdcmDefaultDicts.cxx(627):
> warning #913: invalid multibyte character sequence
> /scratch/hjohnson/src/brains2/iplFreeware/icc/FAST_64_64/Insight/Utilities/gdcm/src/gdcmDefaultDicts.cxx(628):
> warning #913: invalid multibyte character sequence
>
> ...
> 32 typedef struct
> 33 {
> 34 uint16_t group;
> 35 uint16_t element;
> 36 const char *vr;
> 37 const char *vm;
> 38 const char *name;
> 39 } DICT_ENTRY;
> 40
> 41 static DICT_ENTRY datadir[] = {
> 42
> 43 {0x0000, 0x0000, "UL" , "1" , "Group Length"},
> ...
> 627 {0x0018, 0x8150, "DS" , "1" , "Exposure Time in µS"},
> 628 {0x0018, 0x8151, "DS" , "1" , "X-Ray Tube Current in µA"},
> ...
> The problem is that "µ" can not be part of a "const char name *" . I don't
> know how to address this problem, but thought that you might want to have a
> look.
>
> Regards,
> Hans
> --
> Hans J. Johnson, Ph.D.
> Hans-johnson at uiowa.edu
>
> 278 GH
> The University of Iowa
> Iowa City, IA 52241
> (319) 353 8587
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
--
Mathieu
More information about the Insight-developers
mailing list