[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#254630: LVM names



On Sat, Jun 19, 2004 at 02:16:40PM +0100, Martin Michlmayr wrote:
> * Patrick Caulfield <patrick@debian.org> [2004-06-19 14:14]:
> > Allowable characters are: alphanumerics and . _ - +
> 
> What about stuff like umlauts?  (e.g. ä) [sorry, cannot test right
> now]
> 

Ah, well, that depends on the current locale. LVM uses the C function isalnum()
to check the characters (with explicit checks for the extras mentioned above).

The man page for isalpha (a subset of isalnum) says this: 
            " checks for an alphabetic character; in the standard "C"  locale,
              it  is  equivalent  to  (isupper(c)  ||  islower(c)).   In  some
              locales, there may be additional characters for which  isalpha()
              is true--letters which are neither upper case nor lower case. "

and:

     " The  details  of  what characters belong into which class depend on the
       current locale.  For example, isupper()  will  not  recognize  an  A  -
       umlaut as an uppercase letter in the default C locale. "

There is a potential danger here, I think, that a VG created in one locale 
will not be valid in another. 

-- 

patrick



Reply to: